This project is read-only.

Create a row

To create a row, you must first create a context. Then create new instance of an object (Customer) and insert it to the current context. Finally submit all changes for the context. This will create new row in the database for each inserted item.
using (var ctx = SqlDataContext.CreateContext()) {
    Customer cu = new Customer();
    cu.CustomerName = "<customer name>";
    // Set all values to object

Modify a row

Last edited Oct 26, 2010 at 9:50 AM by nolics, version 4


No comments yet.