Exemplo n.º 1
0
 private EntityListRequest <TEntity> CreateGenericListRequest <TEntity>(EntityListRequest request)
 {
     return(new EntityListRequest <TEntity>()
     {
         Order = request.Order,
         StartIndex = request.StartIndex,
         Count = request.Count,
         Filters = request.Filters?.Select(x => FilterNodeConverter.ToExpression <TEntity>(x, _implementationsContainer.Reflector)).ToArray()
     });
 }
Exemplo n.º 2
0
 private GrouppedListRequest <TEntity> CreateGenericGroupRequest <TEntity>(GrouppedListRequest request)
 {
     return(new GrouppedListRequest <TEntity>()
     {
         Order = request.Order,
         StartIndex = request.StartIndex,
         Count = request.Count,
         Aggregations = request.Aggregations,
         GroupBy = request.GroupBy,
         Filters = request.Filters?.Select(x => FilterNodeConverter.ToExpression <TEntity>(x, _implementationsContainer.Reflector)).ToArray()
     });
 }