mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update user test case
This commit is contained in:
parent
1a9f7e6c98
commit
5b2d81d66d
@ -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");
|
||||
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user