LINQ to SQL语句(10)之Insert
LINQ to SQL语句(10)之Insert2010-12-11 博客园 李永京插入(Insert)1.简单形式说明:new一个对象,使用InsertOnSubmit方法 将其加入到对应的集合中,使用SubmitChanges()提交到。NorthwindDataContext db = new NorthwindDataContext();var newCustomer = new Customer{ CustomerID = "MCSF...