BaseDataWindow: Add transaction for saving
This commit is contained in:
1 parent
b6e37c0c67
commit
ee1f4081f4
1 file changed
+2
@@ -206,12 +206,14 @@ namespace Elwig.Windows {
|
||||
|
||||
private async Task Save() {
|
||||
await UpdateClientParameters(App.Client);
|
||||
using var tx = await EditContext!.Database.BeginTransactionAsync();
|
||||
await BranchesSave(EditContext!);
|
||||
await WineAttributesSave(EditContext!);
|
||||
await WineCultivationsSave(EditContext!);
|
||||
await AreaCommitmentTypesSave(EditContext!);
|
||||
await SeasonsSave(EditContext!);
|
||||
await ModifiersSave(EditContext!);
|
||||
await tx.CommitAsync();
|
||||
}
|
||||
|
||||
private async Task FinishEditing() {
|
||||
|
||||
Reference in new issue
Block a user