Update user test case

This commit is contained in:
sunkaixuan 2024-03-06 21:36:08 +08:00
parent 1a9f7e6c98
commit 5b2d81d66d
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ namespace OrmTest
var x5 = db.Queryable<Order>().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");

View File

@ -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<WordTestTable>().Where(it => it.Name == "all").SplitTable(tas => tas.InTableNames(tableName2)).ToList();
var listall = db.Queryable<WordTestTable>().Where(it => it.Name == "all").SplitTable(tas => tas.ContainsTableNames("_FirstA")).ToList();
db.Updateable(data).SplitTable(tas => tas.InTableNames("WordTestTable_FirstZ")).ExecuteCommand();
}