Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying my darndest to understand the business object mod
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01176280
Message ID:
01176745
Views:
8
James,

>So far, really cool, I think, but what now? How do I get the next row, and the next, etc. Are they in some collection that I haven't noticed? Do I need to create another business object for the next row? Where do I go from here?

Very good questions. The entity object acts as a wrapper around a single DataRow. If you want to access multiple records, you can do something like this:
InventoryBalanceEntity IBE;
foreach (DataRow Row in MyTable.Rows)
{
    IBE = new InventoryBalanceEntity();
    IBE.SetDataRow(Row);
    
    // put code here to examine / manipulate values in the Entity object
}
That said, MM .NET has a new GetEntityList() and CreateEntityList() method that allow you to work with strongly typed lists of entity objects. MM .NET 2.3 is code complete, and we're just finishing up the documentation. We'll be sending out an e-mail blast to let everyone know they can start kicking the tires if they'd like.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform