|
@ -15,6 +15,13 @@ namespace ICS.Common.Extension |
|
|
{ |
|
|
{ |
|
|
public static class LinqExpressionExt |
|
|
public static class LinqExpressionExt |
|
|
{ |
|
|
{ |
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 拼接条件(and p.code='value')
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <typeparam name="T"></typeparam>
|
|
|
|
|
|
/// <param name="filterConditionList"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
/// <exception cref="Exception"></exception>
|
|
|
public static Expression<Func<T, bool>> GetFilterExpression<T>(List<FilterModel> filterConditionList) |
|
|
public static Expression<Func<T, bool>> GetFilterExpression<T>(List<FilterModel> filterConditionList) |
|
|
{ |
|
|
{ |
|
|
Expression<Func<T, bool>> condition = null; |
|
|
Expression<Func<T, bool>> condition = null; |
|
|