mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-16 07:57:33 +08:00
Update CodeFirst
This commit is contained in:
parent
408d238e5b
commit
e69f25c840
@ -366,7 +366,14 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(ec.DataType))
|
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 propertyType = UtilMethods.GetUnderType(ec.PropertyInfo);
|
||||||
var properyTypeName = string.Empty;
|
var properyTypeName = string.Empty;
|
||||||
|
Loading…
Reference in New Issue
Block a user