mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-02 20:02:47 +08:00
Update mysql codefirst
This commit is contained in:
parent
38e40a17e4
commit
6a98ec8608
@ -123,5 +123,22 @@ namespace SqlSugar
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected override bool IsNoSamgeType(EntityColumnInfo ec, DbColumnInfo dc)
|
||||
{
|
||||
if (ec.UnderType==UtilConstants.BoolType && dc.DataType == "tinyint" && dc.Length == 1)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else if (ec.UnderType == UtilConstants.DobType && dc.DataType== "double")
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else if (ec.UnderType == UtilConstants.DateType && dc.DataType?.StartsWith("datetime")==true)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return base.IsNoSamgeType(ec, dc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user