Instantiating the Business Object

A business object can be used by declaring a local variable of the type of the business object, and subsequently, creating an instance of the business object using the NewInstance() static/shared method:

VB.NET:

Dim biz As ItemBusinessObject biz = ItemBusinessObject.NewInstance() biz.GetList() biz.Dispose()

C#:

ProductBusinessObject biz = ProductBusinessObject.NewInstance(); biz.GetList(); biz.Dispose();


Last Updated: 8/7/2006