xusc 3 weeks ago
parent
commit
c50d67b9cb
  1. 7
      src/aspnet-core/ICS.Common/Extension/LinqExpressionExt.cs

7
src/aspnet-core/ICS.Common/Extension/LinqExpressionExt.cs

@ -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;

Loading…
Cancel
Save