Update Type.Isclass

This commit is contained in:
sunkaixuna 2021-09-10 20:04:02 +08:00
parent bdf993861a
commit 6ca6fe64cd
2 changed files with 7 additions and 1 deletions

View File

@ -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();

View File

@ -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;
} }
} }
} }