mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Update db.DbFirst
This commit is contained in:
@@ -299,6 +299,10 @@ namespace SqlSugar
|
||||
{
|
||||
item.DefaultValue = "DateTime.Now";
|
||||
}
|
||||
else if (item.DefaultValue == "b'1'")
|
||||
{
|
||||
item.DefaultValue = "1";
|
||||
}
|
||||
ConstructorText = ConstructorText.Replace(DbFirstTemplate.KeyPropertyName, propertyName);
|
||||
ConstructorText = ConstructorText.Replace(DbFirstTemplate.KeyDefaultValue, GetPropertyTypeConvert(item)) + (!hasDefaultValue ? "" : this.ConstructorTemplate);
|
||||
}
|
||||
|
Reference in New Issue
Block a user