mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-25 10:08:11 +08:00
mysql uint bug
This commit is contained in:
parent
112f67c9b8
commit
e725ba1360
@ -58,6 +58,16 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
throw new Exception("unit error");
|
throw new Exception("unit error");
|
||||||
}
|
}
|
||||||
|
Db.CodeFirst.InitTables<UnitUint>();
|
||||||
|
Db.Insertable(new UnitUint { Id= 3833200526 }).ExecuteCommand();
|
||||||
|
var list3=Db.Queryable<UnitUint>().ToList();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public class UnitUint
|
||||||
|
{
|
||||||
|
[SugarColumn(ColumnDataType = "int unsigned")]
|
||||||
|
public uint Id { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[SugarTable("UnitTest0123", IsCreateTableFiledSort= true)]
|
[SugarTable("UnitTest0123", IsCreateTableFiledSort= true)]
|
||||||
|
@ -292,6 +292,8 @@ namespace SqlSugar
|
|||||||
method = isNullableType ? getConvertByte : getByte;
|
method = isNullableType ? getConvertByte : getByte;
|
||||||
if (bindProperyTypeName.IsContainsIn("int16"))
|
if (bindProperyTypeName.IsContainsIn("int16"))
|
||||||
method = isNullableType ? getConvertInt16 : getInt16;
|
method = isNullableType ? getConvertInt16 : getInt16;
|
||||||
|
if (bindProperyTypeName == "uint32"&&this.Context.CurrentConnectionConfig.DbType.IsIn(DbType.MySql,DbType.MySqlConnector))
|
||||||
|
method = null;
|
||||||
break;
|
break;
|
||||||
case CSharpDataType.@bool:
|
case CSharpDataType.@bool:
|
||||||
if (bindProperyTypeName == "bool" || bindProperyTypeName == "boolean")
|
if (bindProperyTypeName == "bool" || bindProperyTypeName == "boolean")
|
||||||
|
Loading…
Reference in New Issue
Block a user