摘要: 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. 阅读全文
posted @ 2008-10-23 16:21 ABeen 阅读(256) 评论(0) 推荐(0) 编辑