From 9534c8fae65b8b01bcfa581c052437c912daee3d Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 6 May 2022 20:23:11 +0800 Subject: [PATCH] Update add column --- Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs b/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs index 237ccac0d..77614e770 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs @@ -216,6 +216,7 @@ namespace SqlSugar this.Context.Updateable(dt) .AS(tableName) .Where($"{columnInfo.DbColumnName} is null ").ExecuteCommand(); + columnInfo.IsNullable = false; UpdateColumn(tableName, columnInfo); } return true;