Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ParameterParser{T}"/> class.
 /// </summary>
 /// <param name="filterExpressionFactory">The <see cref="IFilterExpressionFactory"/> to use.</param>
 /// <param name="sortExpressionFactory">The <see cref="ISortExpressionFactory"/> to use.</param>
 /// <param name="selectExpressionFactory">The <see cref="ISelectExpressionFactory{T}"/> to use.</param>
 public ParameterParser(
     Linq2ODataSettings settings,
     IFilterExpressionFactory filterExpressionFactory,
     ISortExpressionFactory sortExpressionFactory,
     ISelectExpressionFactory <T> selectExpressionFactory)
 {
     _settings = settings;
     _filterExpressionFactory = filterExpressionFactory;
     _sortExpressionFactory   = sortExpressionFactory;
     _selectExpressionFactory = selectExpressionFactory;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ParameterParser{T}"/> class.
 /// </summary>
 /// <param name="memberNameResolver">The <see cref="IMemberNameResolver"/> to use for name resolution.</param>
 /// <param name="valueExpressionFactories">The custom <see cref="IValueExpressionFactory"/> to use for value conversion.</param>
 public ParameterParser(Linq2ODataSettings settings, IMemberNameResolver memberNameResolver, IEnumerable <IValueExpressionFactory> valueExpressionFactories)
     : this(settings, new FilterExpressionFactory(memberNameResolver, valueExpressionFactories), new SortExpressionFactory(memberNameResolver), new SelectExpressionFactory <T>(memberNameResolver, new RuntimeTypeProvider(memberNameResolver)))
 {
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ParameterParser{T}"/> class.
 /// </summary>
 public ParameterParser(Linq2ODataSettings settings)
     : this(settings, new MemberNameResolver())
 {
 }