Exemplo n.º 1
0
        protected void Segment <T>(Expression <Func <TLayout, SegmentList <T> > > propertyExpression, int position, Action <IEntityConfigurator <T> > configure = null)
            where T : TSchema, X12Segment
        {
            var propertyInfo = propertyExpression.GetPropertyInfo();

            var specification = new EntityListLayoutPropertySpecification <TLayout, TSchema, T, SegmentList <T> >(propertyInfo, position, x => new SegmentListProperty <T>(x));

            configure?.Invoke(specification);

            Specification.Add(propertyInfo.Name, specification);
        }
Exemplo n.º 2
0
 /// <inheritdoc/>
 public IOrderedSpecificationBuilder <TItem, TResult> ThenByDescending(
     Expression <Func <TItem, object> > orderExpression)
 {
     Specification.Add(new OrderExpressionInfo <TItem>(orderExpression, OrderTypeEnum.ThenByDescending));
     return(this);
 }