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); }
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); }
public DataReferenceRelativeRouteToPredicateMapper(IRelativeRouteToPredicateMapper <TDataType> dataTypeMapper) { _dataTypeMapper = dataTypeMapper; }
protected AttributeBasedRoutedDataUrlMapper(Type dataType, Guid pageId, IRelativeRouteToPredicateMapper mapper) { _pageId = pageId; _mapper = mapper; _dataType = dataType; }