n-tier Update Operation

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
dalguy72
Posts: 1
Joined: Mon 14 Oct 2013 23:40

n-tier Update Operation

Post by dalguy72 » Mon 14 Oct 2013 23:47

With my first n-tier with the product, simple model with three tables (started with the basic stand-by of order, customer, order-detail since they are not as complex as what I am going for). I specified both the "Data Transfer Object" and "LinqConnect" templates for the code generation. I am able create new items for the tables and delete a specific item in the table from my WCF service. The client of the WCF service interacts with the WCF service via the DTO version of the object (after it was converted using the appropriate Converter class). However, I am confused on how to update one item and have it sent back through to be posted back. For saving, you converted the dto to an entity and then used the .InsertonSubmit function to add the new item. I do not see how to do this with updating the DTO and submitting it back to the DataContext to update just that item.

Any help would be appreciated.

Steve

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: n-tier Update Operation

Post by MariiaI » Tue 15 Oct 2013 11:41

We have sent you a sample project to the e-mail address you provided in your forum profile, please check that the letter is not blocked by your mail filter.

Please test it and tell us if this helps.

Post Reply