Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying my darndest to understand the business object mod
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01176280
Message ID:
01176745
Vues:
9
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform