Linq的简单增删改查
1.Insert
context.User.InsertOnSubmit(u);
context.SubmitChanges();
2.Update
context.SubmitChanges();
3.Delete
context.User.DeleteOnSubmit(u);
context.SubmitChanges();
本文来自博客园,转载请注明原文链接:https://www.cnblogs.com/keeplearningandsharing/p/15843055.html