Steps to Create a Business Entity

  1. Add a new class to your project called ProductBusinessEntity
  2. Change the class so it inherits from EPS.Business.BusinessObjects.BusinessEntity
  3. Note that this class must overwrite the GetBusinessObject() method. If this code isn't added automatically, add it yourself.
  4. 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
  5. At this point, you also need to override the object's constructors.
    • Simply override two overloaded constructors with calls to their base methods only.
  6. 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