Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Entity
Message
From
09/11/2007 09:50:59
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Re: Entity
Miscellaneous
Thread ID:
01267780
Message ID:
01267922
Views:
10
Hi 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.

Where are you concluding there is no Row? There is a check done for that with this:
if (this.Row != null)

Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform