mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update Type.Isclass
This commit is contained in:
parent
bdf993861a
commit
6ca6fe64cd
@ -147,6 +147,12 @@ namespace OrmTest
|
|||||||
name="a"
|
name="a"
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
|
var bytes2 = db.Queryable<UnitBytes11>().Select(it => new
|
||||||
|
{
|
||||||
|
b = it
|
||||||
|
}).ToList();
|
||||||
|
|
||||||
|
|
||||||
db.CodeFirst.InitTables<BoolTest1>();
|
db.CodeFirst.InitTables<BoolTest1>();
|
||||||
db.CodeFirst.InitTables<BoolTest2>();
|
db.CodeFirst.InitTables<BoolTest2>();
|
||||||
db.Queryable<BoolTest1>().Where(it => !it.a).ToList();
|
db.Queryable<BoolTest1>().Where(it => !it.a).ToList();
|
||||||
|
@ -166,7 +166,7 @@ namespace SqlSugar
|
|||||||
|
|
||||||
public static bool IsClass(this Type thisValue)
|
public static bool IsClass(this Type thisValue)
|
||||||
{
|
{
|
||||||
return thisValue != StringType && thisValue.IsEntity();
|
return thisValue != StringType && thisValue.IsEntity()&&thisValue!=UtilConstants.ByteArrayType;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user