This is an attribute class that can be put on properties to signify to EntityBase's Initialize() method to expect that the property will be in the data row currently being loaded. By specifying an argument in the constructor, you can tell Initialize() to load this property with a field in the datarow by the name specified:
private int _numberOfOrders
public string NumberOfOrders
  get { return _numberOfOrders; }
  protected set { _numberOfOrders = value; }

This will look for a column with a name of NumOrders (reader["NumOrders"]) to load into the NumberOfOrders property.

Last edited Jan 2, 2008 at 3:41 PM by banderson, version 5


No comments yet.