Browse Source

Update Type.Isclass

pull/8/head
sunkaixuna 3 years ago
parent
commit
6ca6fe64cd
  1. 6
      Src/Asp.Net/SqlServerTest/UnitTest/UQueryable.cs
  2. 2
      Src/Asp.Net/SqlSugar/Utilities/ValidateExtensions.cs

6
Src/Asp.Net/SqlServerTest/UnitTest/UQueryable.cs

@ -147,6 +147,12 @@ namespace OrmTest
name="a"
}).ToList();
var bytes2 = db.Queryable<UnitBytes11>().Select(it => new
{
b = it
}).ToList();
db.CodeFirst.InitTables<BoolTest1>();
db.CodeFirst.InitTables<BoolTest2>();
db.Queryable<BoolTest1>().Where(it => !it.a).ToList();

2
Src/Asp.Net/SqlSugar/Utilities/ValidateExtensions.cs

@ -166,7 +166,7 @@ namespace SqlSugar
public static bool IsClass(this Type thisValue)
{
return thisValue != StringType && thisValue.IsEntity();
return thisValue != StringType && thisValue.IsEntity()&&thisValue!=UtilConstants.ByteArrayType;
}
}
}

Loading…
Cancel
Save