Linq的简单增删改查

1.Insert

context.User.InsertOnSubmit(u);
context.SubmitChanges();

2.Update

context.SubmitChanges();

3.Delete

context.User.DeleteOnSubmit(u);
context.SubmitChanges();

 

posted @ 2022-01-25 15:06  katesharing  阅读(44)  评论(0编辑  收藏  举报