Update SugarColumn

This commit is contained in:
sunkaixuan
2023-06-07 08:46:20 +08:00
parent 950e7fb63f
commit b601eb5fdd
2 changed files with 2 additions and 2 deletions

View File

@@ -269,7 +269,7 @@ namespace SqlSugar
.Where(it => it is SugarColumn)
.Select(it => (SugarColumn)it)
.FirstOrDefault();
column.ExtendedAttribute = sugarColumn.ExtendedAttribute;
column.ExtendedAttribute = sugarColumn?.ExtendedAttribute;
column.DbTableName = result.DbTableName;
column.EntityName = result.EntityName;
column.PropertyName = property.Name;

View File

@@ -269,7 +269,7 @@ namespace SqlSugar
.Where(it => it is SugarColumn)
.Select(it => (SugarColumn)it)
.FirstOrDefault();
column.ExtendedAttribute = sugarColumn.ExtendedAttribute;
column.ExtendedAttribute = sugarColumn?.ExtendedAttribute;
column.DbTableName = result.DbTableName;
column.EntityName = result.EntityName;
column.PropertyName = property.Name;