mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-27 11:19:15 +08:00
Modify CodeFirst
This commit is contained in:
@@ -609,6 +609,14 @@ namespace SqlSugar
|
||||
{
|
||||
return properyTypeName != dataType;
|
||||
}
|
||||
else if (this.Context.CurrentConnectionConfig.DbType == DbType.SqlServer && dataType.EqualCase("timestamp") && properyTypeName.EqualCase("varbinary"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else if (dataType.EqualCase("numeric") && properyTypeName.EqualCase("decimal"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return properyTypeName.ToLower() != dataType.ToLower();
|
||||
|
||||
Reference in New Issue
Block a user