In this article we use a model created with the help of Entity Developer (read more about it in the section Using Entity Developer) or created manually (read more about it in the section Creating LinqConnect Classes Manually).
LinqConnect is designed to offer maximum flexibility in manipulating and persisting changes made to your objects. As soon as entity objects are available – either by retrieving them through a query or constructing them anew – you may manipulate them as normal objects in your application, changing their values or adding and removing them from collections as you see fit. LinqConnect tracks all your changes and is ready to transmit them back to the database as soon as you are done.
Note: |
---|
To run samples from this article include the following namespace before your code: |
In this sample, we insert a newly created company into the database:
In the following example the specific company is updated:
In the following example we delete a company with the id column specified: