mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
add AsTable navtive SQL test
This commit is contained in:
@ -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";
|
||||
|
Reference in New Issue
Block a user