コード例 #1
0
            private Expression GetFieldFilter(
                IRelativeRouteToPredicateMapper mapper,
                Type propertyType,
                Guid pageId,
                RelativeRoute relativeRoute)
            {
                var @interface = typeof(IRelativeRouteToPredicateMapper <>).MakeGenericType(propertyType);

                return(@interface.GetMethod("GetPredicate").Invoke(mapper, new object[] { pageId, relativeRoute }) as Expression);
            }
コード例 #2
0
            private RelativeRoute InvokeMapper(
                IRelativeRouteToPredicateMapper mapper,
                Type fieldType,
                object fieldValue,
                bool searchSignificant)
            {
                var @interface = typeof(IRelativeRouteToPredicateMapper <>).MakeGenericType(fieldType);

                return(@interface.GetMethod("GetRoute").Invoke(mapper, new[] { fieldValue, searchSignificant }) as RelativeRoute);
            }
コード例 #3
0
 public DataReferenceRelativeRouteToPredicateMapper(IRelativeRouteToPredicateMapper <TDataType> dataTypeMapper)
 {
     _dataTypeMapper = dataTypeMapper;
 }
コード例 #4
0
 protected AttributeBasedRoutedDataUrlMapper(Type dataType, Guid pageId, IRelativeRouteToPredicateMapper mapper)
 {
     _pageId   = pageId;
     _mapper   = mapper;
     _dataType = dataType;
 }