- 增加 ISelect`1 AsQueryable 方法,实现将 ISelect 转换为 IQueryable 类型;

This commit is contained in:
28810
2020-03-11 18:51:56 +08:00
parent a1a265fa28
commit fff7925d22
7 changed files with 158 additions and 7 deletions

View File

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
@ -377,5 +378,13 @@ namespace FreeSql
/// <param name="sql">SQL语句</param>
/// <returns></returns>
ISelect<T1> WithSql(string sql);
/// <summary>
/// 将 ISelect&lt;T1&gt; 转换为 IQueryable&lt;T1&gt;<para></para>
/// 此方法主要用于扩展比如abp IRepository GetAll() 接口方法需要返回 IQueryable 对象<para></para>
/// 注意IQueryable 方法污染较为严重,请尽量避免此转换
/// </summary>
/// <returns></returns>
IQueryable<T1> AsQueryable();
}
}