Linq updating records

6854933580_2c8b688306_z

Click the button below this post to show your appreciation! I can't get 'Submit Changes' to implement with the EF and the only method I've found which is remotely the same is 'Save Changes'. Just realize that this code performs 2 queries: one to get the object, and another to update it. I didn't know which one you were using so I mentioned both in my first post and then used L2S as an example later on. Now you can ask questions directly to me on my new site ASPForums.

If the update is true, then the information in the WPF window is to be updated.Initially, the update was set when the information was passed to the window to get the information inthe fields.If the table object was null, the I set the Update flag to false.You would just write and execute a simple SQL script: While you can always do that using ADO.NET API, or the Open Access ADO API in your Data Layer, it is both error prone and backend-dependent.For instance: On the other hand, consider a scenario where a maintenance task, a deployment script or just some complex business logic requires changes to be applied not on one, two or three entities, but on ten thousand.

You must have an account to comment. Please register or login here!