From 950e7fb63fee1ea2bc01195357fa3fc8c359041b Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 7 Jun 2023 08:43:28 +0800 Subject: [PATCH] Synchronization code --- .../SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs | 1 + Src/Asp.NetCore2/SqlSugar/Entities/EntityColumnInfo.cs | 1 + .../SqlSugar/Entities/Mapping/SugarMappingAttribute.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs index 27f35e459..3a3d7fcbd 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs @@ -269,6 +269,7 @@ namespace SqlSugar .Where(it => it is SugarColumn) .Select(it => (SugarColumn)it) .FirstOrDefault(); + column.ExtendedAttribute = sugarColumn.ExtendedAttribute; column.DbTableName = result.DbTableName; column.EntityName = result.EntityName; column.PropertyName = property.Name; diff --git a/Src/Asp.NetCore2/SqlSugar/Entities/EntityColumnInfo.cs b/Src/Asp.NetCore2/SqlSugar/Entities/EntityColumnInfo.cs index 51dcce35a..65280dc57 100644 --- a/Src/Asp.NetCore2/SqlSugar/Entities/EntityColumnInfo.cs +++ b/Src/Asp.NetCore2/SqlSugar/Entities/EntityColumnInfo.cs @@ -45,5 +45,6 @@ namespace SqlSugar public bool InsertServerTime { get; set; } public bool UpdateServerTime { get; set; } public string UpdateSql { get; set; } + public object ExtendedAttribute { get; set; } } } diff --git a/Src/Asp.NetCore2/SqlSugar/Entities/Mapping/SugarMappingAttribute.cs b/Src/Asp.NetCore2/SqlSugar/Entities/Mapping/SugarMappingAttribute.cs index 966973dc5..75da9a602 100644 --- a/Src/Asp.NetCore2/SqlSugar/Entities/Mapping/SugarMappingAttribute.cs +++ b/Src/Asp.NetCore2/SqlSugar/Entities/Mapping/SugarMappingAttribute.cs @@ -211,6 +211,7 @@ namespace SqlSugar public string InsertSql { get; set; } public bool UpdateServerTime { get; set; } public string UpdateSql { get; set; } + public object ExtendedAttribute{ get; set; } }