diff --git a/Src/Asp.NetCore2/SqlSeverTest/UserTestCases/Demo/Demo1_Queryable.cs b/Src/Asp.NetCore2/SqlSeverTest/UserTestCases/Demo/Demo1_Queryable.cs index 0b6ce02e5..50fb6bb5c 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/UserTestCases/Demo/Demo1_Queryable.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/UserTestCases/Demo/Demo1_Queryable.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using System.Data; using System.Dynamic; using System.Linq; +using System.Linq.Dynamic.Core; using System.Text; namespace OrmTest @@ -127,6 +128,13 @@ namespace OrmTest new GroupByModel() { FieldName = ObjectFuncModel.Create("ToInt64", "Id") } ); db.Queryable().GroupBy(x4).Select("max(id)").ToList(); + + StaticConfig.DynamicExpressionParserType = typeof(DynamicExpressionParser); + + db.UpdateableByObject(typeof(Order)) + .SetColumns("it", $"it.Price== Price+{1} ") + .Where("it", $"it.Id>1 ") + .ExecuteCommand(); Console.WriteLine("#### Examples End ####"); }