mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Update CodeFirst
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user