mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
-
This commit is contained in:
@@ -274,11 +274,11 @@ namespace SqlSugar
|
|||||||
PropertyDescriptionText = GetPropertyDescriptionText(item, PropertyDescriptionText);
|
PropertyDescriptionText = GetPropertyDescriptionText(item, PropertyDescriptionText);
|
||||||
if (this.IsAttribute && item.DataType?.StartsWith("_") == true && PropertyText.Contains("[]"))
|
if (this.IsAttribute && item.DataType?.StartsWith("_") == true && PropertyText.Contains("[]"))
|
||||||
{
|
{
|
||||||
PropertyDescriptionText += "\r\n SugarColumn(IsArray=true)";
|
PropertyDescriptionText += "\r\n [SugarColumn(IsArray=true)]";
|
||||||
}
|
}
|
||||||
else if (item?.DataType?.StartsWith("json")==true)
|
else if (item?.DataType?.StartsWith("json")==true)
|
||||||
{
|
{
|
||||||
PropertyDescriptionText += "\r\n SugarColumn(IsJson=true)";
|
PropertyDescriptionText += "\r\n [SugarColumn(IsJson=true)]";
|
||||||
}
|
}
|
||||||
PropertyText = PropertyDescriptionText + PropertyText;
|
PropertyText = PropertyDescriptionText + PropertyText;
|
||||||
classText = classText.Replace(DbFirstTemplate.KeyPropertyName, PropertyText + (isLast ? "" : ("\r\n" + DbFirstTemplate.KeyPropertyName)));
|
classText = classText.Replace(DbFirstTemplate.KeyPropertyName, PropertyText + (isLast ? "" : ("\r\n" + DbFirstTemplate.KeyPropertyName)));
|
||||||
|
Reference in New Issue
Block a user