#DbScopeFactory

DbScopeFactory

using(vardb=DbScopeFactory.Create()){//这里修改数据db.SaveChanges();} ...
代码星球 代码星球·2020-04-04