- 移除 FreeSql.Repository 扩展方法 FromRepository;

- 调整 ISelect.AsTable 规则,每一次使用将增加 UNION ALL 查询;
- 优化 AsTable UseSyncStructureToLower/ToUpper 设置,兼容 AsTable((t,o) => "(select * from tb)"); #89
This commit is contained in:
28810
2019-09-10 09:26:08 +08:00
parent 7fcb2ed601
commit fa61d8a3d1
16 changed files with 168 additions and 253 deletions

View File

@ -1,34 +0,0 @@
using FreeSql.DataAnnotations;
using FreeSql;
using System;
using System.Collections.Generic;
using Xunit;
using System.Linq;
using Newtonsoft.Json.Linq;
using NpgsqlTypes;
using Npgsql.LegacyPostgis;
using FreeSql.Internal;
using System.Linq.Expressions;
using FreeSql.Internal.Model;
namespace FreeSql.ExpressionTree
{
public class GetAllTableRuleTest
{
[Fact]
public void Test()
{
//var _tables = new List<SelectTableInfo>
//{
// [0] = new SelectTableInfo { }
//};
//var tableRuleInvoke = new Func<Type, string, string[]>((type, oldname) =>
//{
// return new[] { oldname };
//});
//CommonUtils.GetAllTableRule(_tables, tableRuleInvoke);
}
}
}

View File

@ -775,10 +775,7 @@ namespace FreeSql.Tests.Sqlite
//reposTopic.Find(Guid.Empty);
//reposTopic.Update(new Topic { TypeGuid = 1 });
var sql11 = reposTopic.Select
.FromRepository(reposType)
.From<TestTypeInfo, TestTypeParentInfo>((s, b, c) => s)
.LeftJoin(a => a.TypeGuid == a.Type.Guid)
.ToSql();