protected override void Configure( IFilterProviderDescriptor <QueryableFilterContext> descriptor) { descriptor.AddDefaultFieldHandlers(); descriptor.AddFieldHandler <CustomFieldHandler>(); descriptor.AddFieldHandler <MatchAllFields>(); base.Configure(descriptor); }
public static IFilterProviderDescriptor <QueryableFilterContext> AddSpatialHandlers( this IFilterProviderDescriptor <QueryableFilterContext> descriptor) => descriptor .AddFieldHandler <QueryableSpatialGeometryDataHandler>() .AddFieldHandler <QueryableSpatialBufferDataHandler>() .AddFieldHandler <QueryableSpatialContainsOperationHandler>() .AddFieldHandler <QueryableSpatialDistanceOperationHandler>() .AddFieldHandler <QueryableSpatialIntersectsOperationHandler>() .AddFieldHandler <QueryableSpatialOverlapsOperationHandler>() .AddFieldHandler <QueryableSpatialTouchesOperationHandler>() .AddFieldHandler <QueryableSpatialWithinOperationHandler>();
protected override void Configure( IFilterProviderDescriptor <QueryableFilterContext> descriptor) { descriptor.AddFieldHandler <QueryableStringEqualsHandler>(); }
AddDefaultNeo4JFieldHandlers( this IFilterProviderDescriptor <Neo4JFilterVisitorContext> descriptor) { descriptor.AddFieldHandler <Neo4JEqualsOperationHandler>(); descriptor.AddFieldHandler <Neo4JNotEqualsOperationHandler>(); descriptor.AddFieldHandler <Neo4JInOperationHandler>(); descriptor.AddFieldHandler <Neo4JNotInOperationHandler>(); descriptor.AddFieldHandler <Neo4JComparableGreaterThanHandler>(); descriptor.AddFieldHandler <Neo4JComparableNotGreaterThanHandler>(); descriptor.AddFieldHandler <Neo4JComparableGreaterThanOrEqualsHandler>(); descriptor.AddFieldHandler <Neo4JComparableNotGreaterThanOrEqualsHandler>(); descriptor.AddFieldHandler <Neo4JComparableLowerThanHandler>(); descriptor.AddFieldHandler <Neo4JComparableNotLowerThanHandler>(); descriptor.AddFieldHandler <Neo4JComparableLowerThanOrEqualsHandler>(); descriptor.AddFieldHandler <Neo4JComparableNotLowerThanOrEqualsHandler>(); descriptor.AddFieldHandler <Neo4JStringStartsWithHandler>(); descriptor.AddFieldHandler <Neo4JStringNotStartsWithHandler>(); descriptor.AddFieldHandler <Neo4JStringEndsWithHandler>(); descriptor.AddFieldHandler <Neo4JStringNotEndsWithHandler>(); descriptor.AddFieldHandler <Neo4JStringContainsHandler>(); descriptor.AddFieldHandler <Neo4JStringNotContainsHandler>(); descriptor.AddFieldHandler <Neo4JListAllOperationHandler>(); descriptor.AddFieldHandler <Neo4JListAnyOperationHandler>(); descriptor.AddFieldHandler <Neo4JListNoneOperationHandler>(); descriptor.AddFieldHandler <Neo4JListSomeOperationHandler>(); descriptor.AddFieldHandler <Neo4JDefaultFieldHandler>(); return(descriptor); }
/// <summary> /// Initializes the default configuration of the provider by registering handlers /// </summary> /// <param name="descriptor">The descriptor where the handlers are registered</param> /// <returns>The descriptor that was passed in as a parameter</returns> public static IFilterProviderDescriptor <QueryableFilterContext> AddDefaultFieldHandlers( this IFilterProviderDescriptor <QueryableFilterContext> descriptor) { descriptor.AddFieldHandler <QueryableBooleanEqualsHandler>(); descriptor.AddFieldHandler <QueryableBooleanNotEqualsHandler>(); descriptor.AddFieldHandler <QueryableComparableEqualsHandler>(); descriptor.AddFieldHandler <QueryableComparableNotEqualsHandler>(); descriptor.AddFieldHandler <QueryableComparableInHandler>(); descriptor.AddFieldHandler <QueryableComparableNotInHandler>(); descriptor.AddFieldHandler <QueryableComparableGreaterThanHandler>(); descriptor.AddFieldHandler <QueryableComparableNotGreaterThanHandler>(); descriptor.AddFieldHandler <QueryableComparableGreaterThanOrEqualsHandler>(); descriptor.AddFieldHandler <QueryableComparableNotGreaterThanOrEqualsHandler>(); descriptor.AddFieldHandler <QueryableComparableLowerThanHandler>(); descriptor.AddFieldHandler <QueryableComparableNotLowerThanHandler>(); descriptor.AddFieldHandler <QueryableComparableLowerThanOrEqualsHandler>(); descriptor.AddFieldHandler <QueryableComparableNotLowerThanOrEqualsHandler>(); descriptor.AddFieldHandler <QueryableStringEqualsHandler>(); descriptor.AddFieldHandler <QueryableStringNotEqualsHandler>(); descriptor.AddFieldHandler <QueryableStringStartsWithHandler>(); descriptor.AddFieldHandler <QueryableStringNotStartsWithHandler>(); descriptor.AddFieldHandler <QueryableStringEndsWithHandler>(); descriptor.AddFieldHandler <QueryableStringNotEndsWithHandler>(); descriptor.AddFieldHandler <QueryableStringInHandler>(); descriptor.AddFieldHandler <QueryableStringNotInHandler>(); descriptor.AddFieldHandler <QueryableStringContainsHandler>(); descriptor.AddFieldHandler <QueryableStringNotContainsHandler>(); descriptor.AddFieldHandler <QueryableEnumEqualsHandler>(); descriptor.AddFieldHandler <QueryableEnumNotEqualsHandler>(); descriptor.AddFieldHandler <QueryableEnumInHandler>(); descriptor.AddFieldHandler <QueryableEnumNotInHandler>(); descriptor.AddFieldHandler <QueryableListAnyOperationHandler>(); descriptor.AddFieldHandler <QueryableListAllOperationHandler>(); descriptor.AddFieldHandler <QueryableListNoneOperationHandler>(); descriptor.AddFieldHandler <QueryableListSomeOperationHandler>(); descriptor.AddFieldHandler <QueryableDataOperationHandler>(); descriptor.AddFieldHandler <QueryableDefaultFieldHandler>(); return(descriptor); }