Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SaveEntityList
Message
From
25/09/2008 11:32:20
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
25/09/2008 11:15:49
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01350186
Message ID:
01350596
Views:
23
>Hi Tim,
>
>This is a MM Web Service. The code that I have shown is inside a for loop that processes the incoming table one row at a time as part of an update web service.
>
>I have stepped through the code. The values for lnRowCnt and inEntity.PKMOBWORKORDR are as they should be and after the entitylist.add the enititylist.count moves from 0 to 1 as it should if the entity was added. The saveentitylist then says that it worked as I would have expected , but the database still has no records.
>
>I used a SetDataRow in the second line as there is no expicit conversion from datarow to entity so I created the entity and then set its datarow to the row from my table. This does set up the entity properly so far as its values
>
>Tim

It can be quite tedius to this, but I would make sure the MM debug symbols are loaded (let me know if you need help with this part) and set a breakpoint in the SaveEntityList() method and step through until you verify what is happening. you can keep moving your breakpoint up as you narrow it down and keep watching your locals. It may be since you are getting back a rulesPassed that there is a data issue between what you are saving and the database. Verify you can actually save the values in you see in your entities by trying to save them to your datatable directly.

By the way are there any Guids in your data?
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform