mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update dbfirst
This commit is contained in:
parent
a6dfa8b230
commit
34ba00e3ca
@ -329,7 +329,7 @@ namespace SqlSugar
|
||||
}
|
||||
PropertyText = PropertyDescriptionText + PropertyText;
|
||||
classText = classText.Replace(DbFirstTemplate.KeyPropertyName, PropertyText + (isLast ? "" : ("\r\n" + DbFirstTemplate.KeyPropertyName)));
|
||||
if (ConstructorText.HasValue() && item.DefaultValue != null)
|
||||
if (ConstructorText.HasValue() && item.DefaultValue != null&&item.IsIdentity!=true)
|
||||
{
|
||||
var hasDefaultValue = columns.Skip(index + 1).Any(it => it.DefaultValue.HasValue());
|
||||
if (item.DefaultValue.EqualCase("CURRENT_TIMESTAMP"))
|
||||
|
Loading…
Reference in New Issue
Block a user