コード例 #1
0
 internal static IMappingExpression<TSource, TDestination> UseBasePagingFilter<TSource, TDestination,
     TDestinationMember>(
     this IMappingExpression<TSource, TDestination> mappingExpression) 
     where TDestinationMember : BaseEntity
     where TDestination : BasePagingFilter<TDestinationMember>
     where TSource : ResolveFieldContext<object>
 {
     return mappingExpression
         .UseBaseFilter<TSource, TDestination, TDestinationMember>()
         .ForMember(d => d.From, ctx => ctx.MapFrom(s => s.GetArgument<int>("from", default(int))))
         .ForMember(d => d.Count, ctx => ctx.MapFrom(s => s.GetArgument<int>("count", default(int))));
 }