- 增加 UnionALL 联合查询;#1106 #1104 #668 #478 #432 #213 #138

This commit is contained in:
2881099
2022-08-26 18:01:58 +08:00
parent d154a463a5
commit 4b9c4e724d
9 changed files with 341 additions and 221 deletions

View File

@ -56,6 +56,12 @@ namespace FreeSql
/// <returns></returns>
TSelect WithConnection(DbConnection connection);
/// <summary>
/// 使用自定义参数化UnionALL 或者 ToSql 可能有需要
/// </summary>
/// <param name="parameters"></param>
/// <returns></returns>
TSelect WithParameters(List<DbParameter> parameters);
/// <summary>
/// 命令超时设置(秒)
/// </summary>
/// <param name="timeout"></param>

View File

@ -193,6 +193,7 @@ namespace FreeSql
ISelect<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> From<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(Expression<Func<ISelectFromExpression<T1>, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, ISelectFromExpression<T1>>> exp = null) where T2 : class where T3 : class where T4 : class where T5 : class where T6 : class where T7 : class where T8 : class where T9 : class where T10 : class where T11 : class where T12 : class where T13 : class where T14 : class where T15 : class where T16 : class;
ISelect<T1, T2> FromQuery<T2>(ISelect<T2> select2) where T2 : class;
ISelect<T1> UnionAll(ISelect<T1> select2);
/// <summary>
/// 查询条件Where(a => a.Id > 10)支持导航对象查询Where(a => a.Author.Email == "2881099@qq.com")