Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Entity
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Re: Entity
Divers
Thread ID:
01267780
Message ID:
01268584
Vues:
16
Patrick,

>I try to undestand this code. In the jump start my Entity Class has something like
>
>
>public string CustomerID
>{
> get
> {
> if (this.Row != null)
> return (string)mmType.GetNullableDbValue(this.Row["CustomerID"]);
> else
> return this._customerID;
> }
> set
> {
> if (this.Row != null)
> this.Row["CustomerID"] = mmType.SetNullableDbValue(value);
> this._customerID = value;
> }
>}
>private string _customerID;
>

>
>I don't fully get the point. Why do you store things in a object variable when there is no row? What case is this? When there is no row, I guess that no data were retrieved. So why then do I want to store data in the entity? Tanks for explanation.

This is for future use when it is no longer required that there is an underlying DataRow.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform