public void Save(bool async = false) { if (async) { entities.SaveChangesAsync(); } else { entities.SaveChanges(); } }
public void Save(bool isAsync = false) { if (isAsync) { entities.SaveChangesAsync(); } else { entities.SaveChanges();//异步保存 } }
public void Save() { entities.SaveChangesAsync(); }
internal void Save() { entities.SaveChangesAsync(); }