mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-21 18:48:27 +08:00
Update MySql CodeFirst default bool dbtype
This commit is contained in:
@@ -527,7 +527,17 @@ namespace SqlSugar
|
||||
else
|
||||
{
|
||||
var name = GetType(propertyType.Name);
|
||||
result.DataType = this.Context.Ado.DbBind.GetDbTypeName(name);
|
||||
if (name == "Boolean")
|
||||
{
|
||||
result.DataType = "tinyint";
|
||||
result.Length = 1;
|
||||
result.Scale = 0;
|
||||
result.DecimalDigits = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
result.DataType = this.Context.Ado.DbBind.GetDbTypeName(name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user