Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SaveEntityList
Message
From
24/09/2008 10:14:23
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
SaveEntityList
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01350186
Message ID:
01350186
Views:
64
Hi all,

I have a web service that receives a table from a mobile app. I then am looking to loop through the incoming records and update or add the records as required. I try this following code and figured it should work and be a bit of a shorter route than a field by field replacement into the SQL Server. However, this code does not add a record into the SQL Server even though there are no errors and it returns a result of rulespassed. Any one have any ideas on why it is not working:

MOBWORKORDREntity inEntity = new MOBWORKORDREntity();
inEntity.SetDataRow(dtUpdWork.Rows[lnRowCnt]);
oWork.GetMobWorkOrdersByPK(inEntity.PKMOBWORKORDR);
oWork.CreateEntityList();
if (oWork.EntityList.Count == 0)
oWork.EntityList.Add(inEntity);
else
oWork.Entity = inEntity;
mmSaveDataResult Result = oWork.SaveEntityList();

dtUpdWork is the table passed back and has an identical structure to the table in the SQL Server.
Any assistance would be appreciated. Thanks.
Ian
Next
Reply
Map
View

Click here to load this message in the networking platform