This commit is contained in:
28810
2019-04-19 16:46:55 +08:00
parent e3c0f615f9
commit 6c64eac419
2 changed files with 11 additions and 1 deletions

View File

@ -7,6 +7,7 @@ using System.Linq;
using Newtonsoft.Json.Linq;
using NpgsqlTypes;
using Npgsql.LegacyPostgis;
using System.Linq.Expressions;
namespace FreeSql.Tests {
public class UnitTest1 {
@ -53,6 +54,15 @@ namespace FreeSql.Tests {
[Fact]
public void Test1() {
Expression<Func<TestInfo, object>> orderBy = null;
orderBy = a => a.CreateTime;
var testsql1 = select.OrderBy(orderBy).ToSql();
orderBy = a => a.Title;
var testsql2 = select.OrderBy(orderBy).ToSql();
var testjson = @"[
{
""acptNumBelgCityName"":""泰州"",