protected override void Configure(IFilterInputTypeDescriptor <IGameRecordQuery> descriptor) { descriptor .Name("GameFilter") .BindFieldsExplicitly(); descriptor .Filter(g => g.PlatformID) .AllowEquals() .Name("platformId") .Description("Get the platform with the specific PlatformID.").And() .AllowIn() .Name("platformId_in") .Description("Get platforms with the given PlatformIDs.").And() .AllowStartsWith() .Name("platformId_startsWith") .Description("Get platforms whose PlatformIDs start with the given string"); descriptor .Filter(g => g.RecordID) .AllowEquals() .Name("gameId") .Description("Gets the Game with the given ID."); // todo for 11 descriptor .List(g => g.Metadata) .AllowAll <MetadataFilterInputType>().And() .AllowSome <MetadataFilterInputType>().And() .AllowNone <MetadataFilterInputType>().And() .AllowAny(); }
protected override void Configure( IFilterInputTypeDescriptor <FooSimple> descriptor) { descriptor.List(t => t.Bar).BindImplicitly(); }