Update CodeFirst

This commit is contained in:
sunkaixuan 2022-04-23 11:28:00 +08:00
parent 408d238e5b
commit e69f25c840

View File

@ -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;