示例#1
0
 public void Save(bool async = false)
 {
     if (async)
     {
         entities.SaveChangesAsync();
     }
     else
     {
         entities.SaveChanges();
     }
 }
示例#2
0
 public void Save(bool isAsync = false)
 {
     if (isAsync)
     {
         entities.SaveChangesAsync();
     }
     else
     {
         entities.SaveChanges();//异步保存
     }
 }
示例#3
0
 public void Save()
 {
     entities.SaveChangesAsync();
 }
示例#4
0
 internal void Save()
 {
     entities.SaveChangesAsync();
 }