Browse Source

Update demo

pull/18/head
sunkaixuan 3 years ago
parent
commit
3c1d142fb9
  1. 4
      Src/Asp.Net/SqlServerTest/Demo/DemoN_SplitTable.cs

4
Src/Asp.Net/SqlServerTest/Demo/DemoN_SplitTable.cs

@ -72,8 +72,8 @@ namespace OrmTest
Console.WriteLine(); Console.WriteLine();
//按日分表 //按日分表
var x3 = db.Insertable(new OrderSpliteTest() { Name="A" }).SplitTable().ExecuteCommand(); var x3 = db.Insertable(new OrderSpliteTest() { Name="A",Time=DateTime.Now }).SplitTable().ExecuteCommand();
var x33 = db.Insertable(new OrderSpliteTest() { Name = "A" ,Time=DateTime.Now.AddDays(-11)}).SplitTable().ExecuteCommand();
Console.WriteLine(); Console.WriteLine();
////强制分表类型 ////强制分表类型
var x4 = db.Insertable(new OrderSpliteTest() { Name = "A" ,Time=DateTime.Now.AddDays(-1) }).SplitTable().ExecuteCommand(); var x4 = db.Insertable(new OrderSpliteTest() { Name = "A" ,Time=DateTime.Now.AddDays(-1) }).SplitTable().ExecuteCommand();

Loading…
Cancel
Save