Browse Source

Add demo

pull/40/head
sunkaixuan 1 year ago
parent
commit
81e86a1078
  1. 2
      Src/Asp.Net/DmTest/Demo/Demo1_Queryable.cs

2
Src/Asp.Net/DmTest/Demo/Demo1_Queryable.cs

@ -201,7 +201,7 @@ namespace OrmTest
Console.WriteLine("#### No Entity Start ####");
var db = GetInstance();
var list = db.Queryable<dynamic>().AS("order").Where("id=id", new { id = 1 }).ToList();
var list = db.Queryable<dynamic>().AS("order").Where("id=:id", new { id = 1 }).ToList();
var list2 = db.Queryable<dynamic>("o").AS("order").AddJoinInfo("OrderDetail", "i", "o.id=i.OrderId").Where("id=id", new { id = 1 }).Select("o.*").ToList();
Console.WriteLine("#### No Entity End ####");

Loading…
Cancel
Save