From 19390c21a15bba67b62a0c5d8026e68643b9ec7e Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 6 Jul 2023 13:08:49 +0800 Subject: [PATCH] Add demo --- Src/Asp.Net/DmTest/Demo/Demo1_Queryable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.Net/DmTest/Demo/Demo1_Queryable.cs b/Src/Asp.Net/DmTest/Demo/Demo1_Queryable.cs index 93c3d7af5..eb82ca585 100644 --- a/Src/Asp.Net/DmTest/Demo/Demo1_Queryable.cs +++ b/Src/Asp.Net/DmTest/Demo/Demo1_Queryable.cs @@ -203,7 +203,7 @@ namespace OrmTest var list = db.Queryable().AS("order").Where("id=:id", new { id = 1 }).ToList(); - var list2 = db.Queryable("o").AS("order").AddJoinInfo("OrderDetail", "i", "o.id=i.OrderId").Where("id=id", new { id = 1 }).Select("o.*").ToList(); + var list2 = db.Queryable("o").AS("order").AddJoinInfo("OrderDetail", "i", "o.id=i.OrderId").Where("id=@id", new { id = 1 }).Select("o.*").ToList(); Console.WriteLine("#### No Entity End ####"); }