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

@ -656,6 +656,9 @@ namespace FreeSql.Tests.SqlServer {
[Fact]
public void AsTable() {
var listt = select.AsTable((a, b) => "(select * from tb_topic where clicks > 10)").Page(1, 10).ToList();
Func<Type, string, string> tableRule = (type, oldname) => {
if (type == typeof(Topic)) return oldname + "AsTable1";
else if (type == typeof(TestTypeInfo)) return oldname + "AsTable2";