Milos How-To
Steps to Create a Business Entity
Add a new class to your project called ProductBusinessEntity
Change the class so it inherits from EPS.Business.BusinessObjects.BusinessEntity
Note that this class must overwrite the GetBusinessObject() method. If this code isn't added automatically, add it yourself.
In the GetBusinessObject() method, create an instance of ProductBusinessObject and return it.
Note that the return type of this object needs to be typed as an IBusinessObject
At this point, you also need to override the object's constructors.
Simply override two overloaded constructors with calls to their base methods only.
At this point, you can add properties that reference data in the internal dataset
To access field values within the internal dataset, use the GetFieldValue() method.
To set vield values, use the SetFieldValue() method.
Note that the properties can be significantly different from the actual values in the database.
Last Updated:
8/7/2006