Business Entities

Business Entities are the objects that developers will primarily interact with when dealing with data. They are high level objects with strongly typed properties and high level methods that make it easy to work with an entity, such as an customer. The complexities of the database interactions and database tables behind the customer entity are abstracted away.



Example

//Create a new invoice (C#) InvoiceBusinessEntity oInvoice = new InvoiceBusinessEntity(); //Or load an existing invoice //InvoiceBusinessEntity oInvoice = new InvoiceBusinessEntity("123456"); //Access and assign information about the invoice console.WriteLine( oInvoice.FooterText ); console.WriteLine( oInvoice.Terms ); oInvoice.InvoiceDate = DateTime.Now; //Add, modify, delete line items on the invoice oInvoice.LineItems.Add(100,"Great Products"); oInvoice.LineItems[0].Description = "This is some cool descriptive text"; oInvoice.LineItems[0].ProductImage = Bitmap.FromFile("c:\\prodimg.jpg"); oInvoice.Addresses.Add(AddressTypes.Shipping,"13810 CFD","Houston"); //Save the invoice oInvoice.Save();

Using a Business Entity to get or set a customer's name

Using the Developer Services tool to create a new Business Object and Business Entity

Define a new Business Objects and Business Entity with the Developer Services tool

Pairs of Business Objects and Business Entites in a project


Last Updated: 7/15/2006