mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 21:19:34 +08:00
Synchronization code
This commit is contained in:
parent
a0b94738a1
commit
7af7a241ac
@ -470,6 +470,10 @@ namespace SqlSugar
|
|||||||
PropertyText = PropertyText.Replace(DbFirstTemplate.KeySugarColumn, SugarColumnText);
|
PropertyText = PropertyText.Replace(DbFirstTemplate.KeySugarColumn, SugarColumnText);
|
||||||
PropertyText = PropertyText.Replace(DbFirstTemplate.KeyPropertyType, typeString);
|
PropertyText = PropertyText.Replace(DbFirstTemplate.KeyPropertyType, typeString);
|
||||||
PropertyText = PropertyText.Replace(DbFirstTemplate.KeyPropertyName, propertyName);
|
PropertyText = PropertyText.Replace(DbFirstTemplate.KeyPropertyName, propertyName);
|
||||||
|
if (typeString == "string"&&this.IsStringNullable&&item.IsNullable==false&&PropertyText.EndsWith("{get;set;}\r\n"))
|
||||||
|
{
|
||||||
|
PropertyText=PropertyText.Replace("{get;set;}\r\n", "{get;set;} = string.Empty;\r\n");
|
||||||
|
}
|
||||||
return PropertyText;
|
return PropertyText;
|
||||||
}
|
}
|
||||||
private string GetEnityName(DbColumnInfo item)
|
private string GetEnityName(DbColumnInfo item)
|
||||||
|
Loading…
Reference in New Issue
Block a user