mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Synchronization code
This commit is contained in:
parent
9cf9ebc2e5
commit
f4495e0e35
@ -472,7 +472,7 @@ namespace SqlSugar
|
|||||||
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"))
|
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");
|
PropertyText=PropertyText.Replace("{get;set;}\r\n", "{get;set;} = null!;\r\n");
|
||||||
}
|
}
|
||||||
return PropertyText;
|
return PropertyText;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user