Add user test case

This commit is contained in:
sunkaixuan
2023-12-27 23:13:39 +08:00
parent fd7ad22d7b
commit e8c5cdc8e7

View File

@@ -5,6 +5,7 @@ using System.Collections.Generic;
using System.Data; using System.Data;
using System.Dynamic; using System.Dynamic;
using System.Linq; using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text; using System.Text;
namespace OrmTest namespace OrmTest
@@ -127,6 +128,13 @@ namespace OrmTest
new GroupByModel() { FieldName = ObjectFuncModel.Create("ToInt64", "Id") } new GroupByModel() { FieldName = ObjectFuncModel.Create("ToInt64", "Id") }
); );
db.Queryable<Order>().GroupBy(x4).Select("max(id)").ToList(); db.Queryable<Order>().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 ####"); Console.WriteLine("#### Examples End ####");
} }