mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 14:04:44 +08:00
Update CodeFirst
This commit is contained in:
parent
408d238e5b
commit
e69f25c840
@ -366,7 +366,14 @@ namespace SqlSugar
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ec.DataType))
|
||||
{
|
||||
return ec.DataType != dc.DataType;
|
||||
if (ec.IsIdentity && dc.IsIdentity)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return ec.DataType != dc.DataType;
|
||||
}
|
||||
}
|
||||
var propertyType = UtilMethods.GetUnderType(ec.PropertyInfo);
|
||||
var properyTypeName = string.Empty;
|
||||
|
Loading…
Reference in New Issue
Block a user