add AsTable navtive SQL test

This commit is contained in:
28810
2019-04-15 09:18:07 +08:00
parent a60a68cd13
commit 05a40233ee
5 changed files with 14 additions and 0 deletions

View File

@ -584,6 +584,8 @@ namespace FreeSql.Tests.Sqlite {
[Fact]
public void AsTable() {
var listt = select.AsTable((a, b) => "(select * from tb_topic where clicks > 10)").Page(1, 10).ToList();
var tenantId = 1;
var reposTopic = g.sqlite.GetGuidRepository<Topic>(null, oldname => $"{oldname}_{tenantId}");
var reposType = g.sqlite.GetGuidRepository<TestTypeInfo>(null, oldname => $"{oldname}_{tenantId}");