Browse Source

Add demo

pull/40/head
sunkaixuan 1 year ago
parent
commit
b46b1d24ea
  1. 2
      Src/Asp.NetCore2/SqlSeverTest/Demo/Demo4_Deleteable.cs

2
Src/Asp.NetCore2/SqlSeverTest/Demo/Demo4_Deleteable.cs

@ -44,6 +44,8 @@ namespace OrmTest
//logic delete
db.CodeFirst.InitTables<LogicDeleteTezt>();
db.Deleteable<LogicDeleteTezt>().Where(it=>it.Name=="a").IsLogic().ExecuteCommand();
db.Deleteable<Order>().WhereColumns(db.Queryable<Order>().Take(2).ToList(), it => new { it.Id, it.Name }).ExecuteCommand();
Console.WriteLine("#### Deleteable End ####");
}

Loading…
Cancel
Save