摘要:
The first step to insert a record into a database is to create a DataContext. That is the first step for
every LINQ to SQL query.
Second, an entity object is instantiated from an entity class.
Third, that entity object is inserted into the appropriate table collection. And fourth, the SubmitChanges method is called on the DataContext. 阅读全文