private async Task OpenAndSaveAsync(SaveWorkState saveWorkState) { saveWorkState.BeforeSave(); await SaveChangesCoreAsync(saveWorkState); saveWorkState.AfterSave(); }
public Dictionary <Type, List <EntityInfo> > GetSaveMapFromSaveBundle(JObject saveBundle) { InitializeSaveState(saveBundle); // Sets initial EntityInfos SaveWorkState.BeforeSave(); // Creates the SaveMap as byproduct of BeforeSave logic return(SaveWorkState.SaveMap); }