Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Entity Row
Message
 
To
04/10/2006 18:16:41
Jeff Corder
Ambit Technologies, LLC
Missouri, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Database:
MS SQL Server
Miscellaneous
Thread ID:
01159544
Message ID:
01159954
Views:
22
Jeff,

>I am trying to step through a Business Object's Data Table. I have been trying to use the Entity.SetDataRow() method, but it isn't changing the data for the entity.
>
>I'm using
> oInvoice.Entity.SetDataRow(oInvoice.DataSet.Tables[0].Rows[InvoiceRow]);
>
>After this line executes, the Entity is not changing (checking oInvoice.Entity.BalanceDue and comparing the fields of the Rows[] they are different). I can't use a foreach in this instance.
>
>I'm sure I'm doing something wrong (not the first time - ask Kevin). I'm open to suggestions on how I should be moving through the data.

What is the value of InvoiceRow? To debug what's going on, you can go the circuitous route and set the business object's DataRow property and see if that makes a difference.

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
Next
Reply
Map
View

Click here to load this message in the networking platform