예제 #1
0
 private void OpenAndSave(SaveWorkState saveWorkState)
 {
     OpenDbConnection(); // ensure connection is available for BeforeSaveEntities
     saveWorkState.BeforeSave();
     SaveChangesCore(saveWorkState);
     saveWorkState.AfterSave();
 }
예제 #2
0
        private async Task OpenAndSaveAsync(SaveWorkState saveWorkState)
        {
            saveWorkState.BeforeSave();
            await SaveChangesCoreAsync(saveWorkState);

            saveWorkState.AfterSave();
        }