请参照https://www.cnblogs.com/bomo/p/3509923.html
安装ef扩展库
//删除 context.Table1.Delete(u => u.Id > 5); context.SaveChange(); //更新 context.Table1.Update(u => u.Id > 5, u => new Table1 { Age = 10 }); context.SaveChange();