mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 移除 FreeSql.Repository 扩展方法 FromRepository;
- 调整 ISelect.AsTable 规则,每一次使用将增加 UNION ALL 查询; - 优化 AsTable UseSyncStructureToLower/ToUpper 设置,兼容 AsTable((t,o) => "(select * from tb)"); #89
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user