General information
Category:
The Mere Mortals .NET Framework
Hi!
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only