Browse Source

Add demo

pull/40/head
sunkaixuan 1 year ago
parent
commit
bae0e0c0f4
  1. 4
      Src/Asp.Net/SqlServerTest/Demo/Demo4_Deleteable.cs

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

@ -64,6 +64,10 @@ namespace OrmTest
db.Deleteable<Custom>()
.AS("order")
.Where(it =>SqlFunc.Subqueryable<Custom>().AS("order").Where(s=>s.Id==it.Id).NotAny() ).ExecuteCommand();
var list = db.Queryable<Order>().Take(2).ToList();
db.Deleteable<Custom>()
.AS("order")
.Where(it => list.Any(s=>s.Name==it.Name)).ExecuteCommand();
Console.WriteLine("#### Deleteable End ####");
}

Loading…
Cancel
Save