diff --git a/Src/Asp.Net/SqlServerTest/UserTestCases/Cases/UCustom011.cs b/Src/Asp.Net/SqlServerTest/UserTestCases/Cases/UCustom011.cs index 15e4078e5..2f63526b1 100644 --- a/Src/Asp.Net/SqlServerTest/UserTestCases/Cases/UCustom011.cs +++ b/Src/Asp.Net/SqlServerTest/UserTestCases/Cases/UCustom011.cs @@ -21,7 +21,7 @@ namespace OrmTest var x5 = db.Queryable().Select(it => new { x = DateTime.Now.DayOfWeek.ToString() }).ToList(); if (x1.Any()) { - Check.Exception(x1.First()!=366|| x1.First() != 365, "unit error . UCustom011"); + Check.Exception(x1.First()!=366&& x1.First() != 365, "unit error . UCustom011"); Check.Exception(x2.First() != 24, "unit error . UCustom011"); Check.Exception(x3.First() != 60, "unit error . UCustom011"); Check.Exception(x4.First() != 60, "unit error . UCustom011"); diff --git a/Src/Asp.Net/SqlServerTest/UserTestCases/Cases/USplit.cs b/Src/Asp.Net/SqlServerTest/UserTestCases/Cases/USplit.cs index fb67a6ffa..a073082a2 100644 --- a/Src/Asp.Net/SqlServerTest/UserTestCases/Cases/USplit.cs +++ b/Src/Asp.Net/SqlServerTest/UserTestCases/Cases/USplit.cs @@ -88,10 +88,10 @@ namespace OrmTest //只查A表 var tableName2 = db.SplitHelper(new WordTestTable() { Name="A" }).GetTableNames(); - db.Updateable(data).SplitTable(tas => tas.InTableNames("WordTestTable_FirstZ")).ExecuteCommand(); + var listall1 = db.Queryable().Where(it => it.Name == "all").SplitTable(tas => tas.InTableNames(tableName2)).ToList(); var listall = db.Queryable().Where(it => it.Name == "all").SplitTable(tas => tas.ContainsTableNames("_FirstA")).ToList(); - + db.Updateable(data).SplitTable(tas => tas.InTableNames("WordTestTable_FirstZ")).ExecuteCommand(); }