From 52551f3570d731fb237e08efc54cfe317aac1b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B0=E6=97=A0=E6=AD=A2=E7=AB=9E?= <734913414@qq.com> Date: Tue, 10 Aug 2021 08:15:04 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A7=9F=E6=88=B7=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E4=BF=A1=E6=81=AF=E6=97=A0=E6=B3=95=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20=E4=BF=AE=E5=A4=8D=E7=A7=9F?= =?UTF-8?q?=E6=88=B7=E7=BC=96=E8=BE=91=E4=BF=A1=E6=81=AF=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/Magic.Core/Service/Tenant/SysTenantService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/Magic.Core/Service/Tenant/SysTenantService.cs b/backend/Magic.Core/Service/Tenant/SysTenantService.cs index 7a41e8a..7d92009 100644 --- a/backend/Magic.Core/Service/Tenant/SysTenantService.cs +++ b/backend/Magic.Core/Service/Tenant/SysTenantService.cs @@ -1,4 +1,4 @@ - + using Furion.DataEncryption; using Furion.DependencyInjection; @@ -236,7 +236,7 @@ namespace Magic.Core.Service var tenant = input.Adapt(); tenant.TenantType = TenantTypeEnum.COMMON; - await _sysTenantRep.Context.Insertable(tenant).CallEntityMethod(m => m.Create()).ExecuteCommandAsync(); + await _sysTenantRep.Context.Updateable(tenant).IgnoreColumns(ignoreAllNullColumns: true).CallEntityMethod(m => m.Modify()).ExecuteCommandAsync(); } /// -- Gitee