Start by learning to understand the basic architecture of the
wwBusiness class which is the base of all business objects you will create.
Creating a new instance of a business object involves subclassing the wwBusiness class and setting a few properties in the constructor of the object. There are two ways to create a business object:
- DataRow based
Requires no further setup and uses DataRows to hold data retrieved from Load(), New(), GetBlankRecord(). Data is loaded into the DataRow member and provided as busObject.DataRow. - Entity based
Requires that you generate an Entity object for each business object either manually or using the provided EntityGenerator tool. The generated entity contains properties for each of the fields of the database table. The Entity object is bound to an underlying DataRow object. The big advantage of Entities are that you get strongly typed objects for compile time verification of names and Intellisense on the database field schema.
Configuration
The wwBusiness object framework requires a little setup for automatic PK generation with SQL Server at least. You'll need to add a stored procedure and a key generation table.