diff --git a/aspnet-core/modules/account/LINGYUN.Abp.Account.Application/LINGYUN/Abp/Account/AccountAppService.cs b/aspnet-core/modules/account/LINGYUN.Abp.Account.Application/LINGYUN/Abp/Account/AccountAppService.cs index 5defc7414..ff4fa9f5f 100644 --- a/aspnet-core/modules/account/LINGYUN.Abp.Account.Application/LINGYUN/Abp/Account/AccountAppService.cs +++ b/aspnet-core/modules/account/LINGYUN.Abp.Account.Application/LINGYUN/Abp/Account/AccountAppService.cs @@ -95,7 +95,7 @@ namespace LINGYUN.Abp.Account var userLogin = new UserLoginInfo(AbpWeChatMiniProgramConsts.ProviderName, wehchatOpenId.OpenId, AbpWeChatGlobalConsts.DisplayName); (await UserManager.AddLoginAsync(user, userLogin)).CheckErrors(); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } public virtual async Task SendPhoneRegisterCodeAsync(SendPhoneRegisterCodeDto input) @@ -168,7 +168,7 @@ namespace LINGYUN.Abp.Account await SecurityTokenCache.RemoveAsync(securityTokenCacheKey); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return; } @@ -244,7 +244,7 @@ namespace LINGYUN.Abp.Account // 移除缓存项 await SecurityTokenCache.RemoveAsync(securityTokenCacheKey); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } public virtual async Task SendPhoneSigninCodeAsync(SendPhoneSigninCodeDto input) diff --git a/aspnet-core/modules/apigateway/LINGYUN.ApiGateway.Application/LINGYUN/ApiGateway/Ocelot/RouteGroupAppService.cs b/aspnet-core/modules/apigateway/LINGYUN.ApiGateway.Application/LINGYUN/ApiGateway/Ocelot/RouteGroupAppService.cs index 34118126c..3ef1043fd 100644 --- a/aspnet-core/modules/apigateway/LINGYUN.ApiGateway.Application/LINGYUN/ApiGateway/Ocelot/RouteGroupAppService.cs +++ b/aspnet-core/modules/apigateway/LINGYUN.ApiGateway.Application/LINGYUN/ApiGateway/Ocelot/RouteGroupAppService.cs @@ -76,7 +76,7 @@ namespace LINGYUN.ApiGateway.Ocelot router.SwitchApp(input.AppName, input.AppIpAddress); await RouterRepository.UpdateAsync(router); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(router); } diff --git a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityClaimTypeAppService.cs b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityClaimTypeAppService.cs index 7d5082c51..4e17d2dc1 100644 --- a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityClaimTypeAppService.cs +++ b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityClaimTypeAppService.cs @@ -41,7 +41,7 @@ namespace LINGYUN.Abp.Identity input.ValueType ); identityClaimType = await IdentityClaimTypeManager.CreateAsync(identityClaimType); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(identityClaimType); } @@ -105,7 +105,7 @@ namespace LINGYUN.Abp.Identity } identityClaimType = await IdentityClaimTypeManager.UpdateAsync(identityClaimType); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(identityClaimType); } diff --git a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityRoleAppService.cs b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityRoleAppService.cs index 0b17bc430..93e8d21bc 100644 --- a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityRoleAppService.cs +++ b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityRoleAppService.cs @@ -53,7 +53,7 @@ namespace LINGYUN.Abp.Identity origanzationUnit.RemoveRole(id); } - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } [Authorize(IdentityPermissions.Roles.ManageOrganizationUnits)] @@ -61,7 +61,7 @@ namespace LINGYUN.Abp.Identity { await OrganizationUnitManager.RemoveRoleFromOrganizationUnitAsync(id, ouId); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } #endregion @@ -88,7 +88,7 @@ namespace LINGYUN.Abp.Identity role.AddClaim(GuidGenerator, claim); await IdentityRoleRepository.UpdateAsync(role); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } [Authorize(IdentityPermissions.Roles.ManageClaims)] @@ -103,7 +103,7 @@ namespace LINGYUN.Abp.Identity await IdentityRoleRepository.UpdateAsync(role); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } } @@ -115,7 +115,7 @@ namespace LINGYUN.Abp.Identity await IdentityRoleRepository.UpdateAsync(role); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } #endregion diff --git a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityUserAppService.cs b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityUserAppService.cs index 4c29a1df9..a06f2ff42 100644 --- a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityUserAppService.cs +++ b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityUserAppService.cs @@ -46,7 +46,7 @@ namespace LINGYUN.Abp.Identity await UserManager.SetOrganizationUnitsAsync(user, input.OrganizationUnitIds); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } [Authorize(IdentityPermissions.Users.ManageOrganizationUnits)] @@ -54,7 +54,7 @@ namespace LINGYUN.Abp.Identity { await UserManager.RemoveFromOrganizationUnitAsync(id, ouId); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } #endregion @@ -80,7 +80,7 @@ namespace LINGYUN.Abp.Identity user.AddClaim(GuidGenerator, claim); (await UserManager.UpdateAsync(user)).CheckErrors(); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } [Authorize(IdentityPermissions.Users.ManageClaims)] @@ -92,7 +92,7 @@ namespace LINGYUN.Abp.Identity user.ReplaceClaim(oldClaim, newClaim); (await UserManager.UpdateAsync(user)).CheckErrors(); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } [Authorize(IdentityPermissions.Users.ManageClaims)] @@ -102,7 +102,7 @@ namespace LINGYUN.Abp.Identity user.RemoveClaim(new Claim(input.ClaimType, input.ClaimValue)); (await UserManager.UpdateAsync(user)).CheckErrors(); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } #endregion @@ -144,7 +144,7 @@ namespace LINGYUN.Abp.Identity (await UserManager.SetTwoFactorEnabledWithAccountConfirmedAsync(user, input.Enabled)).CheckErrors(); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } [Authorize(Volo.Abp.Identity.IdentityPermissions.Users.Update)] @@ -158,7 +158,7 @@ namespace LINGYUN.Abp.Identity var endDate = new DateTimeOffset(Clock.Now).AddSeconds(seconds); (await UserManager.SetLockoutEndDateAsync(user, endDate)).CheckErrors(); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } [Authorize(Volo.Abp.Identity.IdentityPermissions.Users.Update)] @@ -167,7 +167,7 @@ namespace LINGYUN.Abp.Identity var user = await GetUserAsync(id); (await UserManager.SetLockoutEndDateAsync(user, null)).CheckErrors(); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } protected virtual async Task GetUserAsync(Guid id) diff --git a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/MyProfileAppService.cs b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/MyProfileAppService.cs index 8fc48177b..d411798b7 100644 --- a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/MyProfileAppService.cs +++ b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/MyProfileAppService.cs @@ -56,7 +56,7 @@ namespace LINGYUN.Abp.Identity } (await UserManager.UpdateAsync(user)).CheckErrors(); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } public virtual async Task GetTwoFactorEnabledAsync() @@ -83,7 +83,7 @@ namespace LINGYUN.Abp.Identity (await UserManager.SetTwoFactorEnabledWithAccountConfirmedAsync(user, input.Enabled)).CheckErrors(); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } public virtual async Task SendChangePhoneNumberCodeAsync(SendChangePhoneNumberCodeDto input) @@ -129,7 +129,7 @@ namespace LINGYUN.Abp.Identity // 更换手机号 (await UserManager.ChangePhoneNumberAsync(user, input.NewPhoneNumber, input.Code)).CheckErrors(); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); var securityTokenCacheKey = SmsSecurityTokenCacheItem.CalculateCacheKey(input.NewPhoneNumber, "SmsChangePhoneNumber"); await SecurityTokenCache.RemoveAsync(securityTokenCacheKey); diff --git a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/OrganizationUnitAppService.cs b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/OrganizationUnitAppService.cs index b3507cee2..55ac0102e 100644 --- a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/OrganizationUnitAppService.cs +++ b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/OrganizationUnitAppService.cs @@ -46,7 +46,7 @@ namespace LINGYUN.Abp.Identity input.MapExtraPropertiesTo(origanizationUnit); await OrganizationUnitManager.CreateAsync(origanizationUnit); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(origanizationUnit); } @@ -198,7 +198,7 @@ namespace LINGYUN.Abp.Identity input.MapExtraPropertiesTo(origanizationUnit); await OrganizationUnitManager.UpdateAsync(origanizationUnit); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(origanizationUnit); } @@ -215,7 +215,7 @@ namespace LINGYUN.Abp.Identity await UserManager.AddToOrganizationUnitAsync(user, origanizationUnit); } - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } [Authorize(IdentityPermissions.OrganizationUnits.ManageRoles)] @@ -230,7 +230,7 @@ namespace LINGYUN.Abp.Identity await OrganizationUnitManager.AddRoleToOrganizationUnitAsync(role, origanizationUnit); } - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } } } diff --git a/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/ApiResources/ApiResourceAppService.cs b/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/ApiResources/ApiResourceAppService.cs index e4ff62ec2..a161b0908 100644 --- a/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/ApiResources/ApiResourceAppService.cs +++ b/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/ApiResources/ApiResourceAppService.cs @@ -59,7 +59,7 @@ namespace LINGYUN.Abp.IdentityServer.ApiResources apiResource = await ApiResourceRepository.InsertAsync(apiResource); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(apiResource); } @@ -73,7 +73,7 @@ namespace LINGYUN.Abp.IdentityServer.ApiResources apiResource = await ApiResourceRepository.UpdateAsync(apiResource); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(apiResource); } @@ -84,7 +84,7 @@ namespace LINGYUN.Abp.IdentityServer.ApiResources var apiResource = await ApiResourceRepository.GetAsync(id); await ApiResourceRepository.DeleteAsync(apiResource); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } protected virtual async Task UpdateApiResourceByInputAsync(ApiResource apiResource, ApiResourceCreateOrUpdateDto input) diff --git a/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/ApiScopes/ApiScopeAppService.cs b/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/ApiScopes/ApiScopeAppService.cs index 1ad1094d6..e2890570d 100644 --- a/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/ApiScopes/ApiScopeAppService.cs +++ b/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/ApiScopes/ApiScopeAppService.cs @@ -39,7 +39,7 @@ namespace LINGYUN.Abp.IdentityServer.ApiScopes await UpdateApiScopeByInputAsync(apiScope, input); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); apiScope = await ApiScopeRepository.InsertAsync(apiScope); @@ -53,7 +53,7 @@ namespace LINGYUN.Abp.IdentityServer.ApiScopes await ApiScopeRepository.DeleteAsync(apiScope); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } public virtual async Task GetAsync(Guid id) @@ -86,7 +86,7 @@ namespace LINGYUN.Abp.IdentityServer.ApiScopes await UpdateApiScopeByInputAsync(apiScope, input); apiScope = await ApiScopeRepository.UpdateAsync(apiScope); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(apiScope); } diff --git a/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/Clients/ClientAppService.cs b/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/Clients/ClientAppService.cs index d2296136e..53c66f419 100644 --- a/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/Clients/ClientAppService.cs +++ b/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/Clients/ClientAppService.cs @@ -51,7 +51,7 @@ namespace LINGYUN.Abp.IdentityServer.Clients client = await ClientRepository.InsertAsync(client); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(client); } @@ -62,7 +62,7 @@ namespace LINGYUN.Abp.IdentityServer.Clients var client = await ClientRepository.GetAsync(id); await ClientRepository.DeleteAsync(client); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } public virtual async Task GetAsync(Guid id) @@ -312,7 +312,7 @@ namespace LINGYUN.Abp.IdentityServer.Clients client = await ClientRepository.UpdateAsync(client); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(client); } @@ -445,7 +445,7 @@ namespace LINGYUN.Abp.IdentityServer.Clients } client = await ClientRepository.InsertAsync(client); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(client); } diff --git a/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/Grants/PersistedGrantAppService.cs b/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/Grants/PersistedGrantAppService.cs index 9edf0f777..824726498 100644 --- a/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/Grants/PersistedGrantAppService.cs +++ b/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/Grants/PersistedGrantAppService.cs @@ -24,7 +24,7 @@ namespace LINGYUN.Abp.IdentityServer.Grants var persistedGrant = await PersistentGrantRepository.GetAsync(id); await PersistentGrantRepository.DeleteAsync(persistedGrant); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } public virtual async Task GetAsync(Guid id) diff --git a/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/IdentityResources/IdentityResourceAppService.cs b/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/IdentityResources/IdentityResourceAppService.cs index d10a61087..46b3499c0 100644 --- a/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/IdentityResources/IdentityResourceAppService.cs +++ b/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.Application/LINGYUN/Abp/IdentityServer/IdentityResources/IdentityResourceAppService.cs @@ -51,7 +51,7 @@ namespace LINGYUN.Abp.IdentityServer.IdentityResources input.ShowInDiscoveryDocument); await UpdateApiResourceByInputAsync(identityResource, input); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); identityResource = await IdentityResourceRepository.InsertAsync(identityResource); @@ -65,7 +65,7 @@ namespace LINGYUN.Abp.IdentityServer.IdentityResources await UpdateApiResourceByInputAsync(identityResource, input); identityResource = await IdentityResourceRepository.UpdateAsync(identityResource); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(identityResource); } diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Datas/DataAppService.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Datas/DataAppService.cs index 6b54283a1..e839bbb87 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Datas/DataAppService.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Datas/DataAppService.cs @@ -57,7 +57,7 @@ namespace LINGYUN.Platform.Datas ); data = await DataRepository.InsertAsync(data); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(data); } @@ -129,7 +129,7 @@ namespace LINGYUN.Platform.Datas } data = await DataRepository.UpdateAsync(data); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(data); } @@ -159,7 +159,7 @@ namespace LINGYUN.Platform.Datas dataItem.AllowBeNull = input.AllowBeNull; await DataRepository.UpdateAsync(data); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } [Authorize(PlatformPermissions.DataDictionary.ManageItems)] @@ -182,7 +182,7 @@ namespace LINGYUN.Platform.Datas input.AllowBeNull); await DataRepository.UpdateAsync(data); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } [Authorize(PlatformPermissions.DataDictionary.ManageItems)] @@ -192,7 +192,7 @@ namespace LINGYUN.Platform.Datas data.RemoveItem(name); await DataRepository.UpdateAsync(data); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } } } diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Layouts/LayoutAppService.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Layouts/LayoutAppService.cs index 137239963..cd60dd2c8 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Layouts/LayoutAppService.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Layouts/LayoutAppService.cs @@ -40,7 +40,7 @@ namespace LINGYUN.Platform.Layouts CurrentTenant.Id); layout = await LayoutRepository.InsertAsync(layout); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(layout); } @@ -56,7 +56,7 @@ namespace LINGYUN.Platform.Layouts //} await LayoutRepository.DeleteAsync(layout); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } public virtual async Task GetAsync(Guid id) @@ -113,7 +113,7 @@ namespace LINGYUN.Platform.Layouts layout.Redirect = input.Redirect; } layout = await LayoutRepository.UpdateAsync(layout); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(layout); } diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Menus/MenuAppService.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Menus/MenuAppService.cs index 136496d3f..de31a4f1b 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Menus/MenuAppService.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Menus/MenuAppService.cs @@ -121,7 +121,7 @@ namespace LINGYUN.Platform.Menus } } - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(menu); } @@ -188,7 +188,7 @@ namespace LINGYUN.Platform.Menus menu.IsPublic = input.IsPublic; await MenuManager.UpdateAsync(menu); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); return ObjectMapper.Map(menu); } diff --git a/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/SettingAppService.cs b/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/SettingAppService.cs index d8dd27adb..518df2bba 100644 --- a/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/SettingAppService.cs +++ b/aspnet-core/modules/settings/LINGYUN.Abp.SettingManagement.Application/LINGYUN/Abp/SettingManagement/SettingAppService.cs @@ -64,7 +64,7 @@ namespace LINGYUN.Abp.SettingManagement await EventBus.PublishAsync(new CurrentApplicationConfigurationCacheResetEventData()); }); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } [Authorize(AbpSettingManagementPermissions.Settings.Manager)] @@ -86,7 +86,7 @@ namespace LINGYUN.Abp.SettingManagement await EventBus.PublishAsync(new CurrentApplicationConfigurationCacheResetEventData()); }); - await CurrentUnitOfWork.CompleteAsync(); + await CurrentUnitOfWork.SaveChangesAsync(); } }