Example #1
0
 protected override void Configure(IFilterInputTypeDescriptor <UserEntity> descriptor)
 {
     Name = "UserFilter";
     descriptor.BindFieldsExplicitly();
     descriptor.Filter(u => u.UserName);
     descriptor.Filter(u => u.Id);
 }
 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();
 }
Example #3
0
 protected override void Configure(IFilterInputTypeDescriptor <CodingSkillEntity> descriptor)
 {
     Name = "CodingSkillFilter";
     descriptor.BindFieldsExplicitly();
     descriptor.Filter(s => s.Name);
     descriptor.Filter(s => s.Level);
     descriptor.Filter(s => s.Id);
     descriptor.Filter(s => s.UserId);
 }
 protected override void Configure(
     IFilterInputTypeDescriptor <Foo> descriptor)
 {
     descriptor.Filter(t => t.Bar)
     .AllowEquals()
     .And()
     .AllowNotEquals();
 }
 protected override void Configure(IFilterInputTypeDescriptor <IRecordMetadataQuery> descriptor)
 {
     descriptor
     .Name("RecordMetadataFilter");
     descriptor
     .Filter(f => f.MetadataKey)
     .AllowEquals().And()
     .AllowNotEquals().And()
     .AllowContains().And()
     .AllowNotContains();
     descriptor
     .Filter(f => f.MetadataValue)
     .AllowEquals().And()
     .AllowNotEquals().And()
     .AllowContains().And()
     .AllowNotContains();
 }
Example #6
0
 protected override void Configure(
     IFilterInputTypeDescriptor <Foo> descriptor)
 {
     descriptor.Filter(t => t.Bar)
     .BindExplicitly()
     .AllowContains().And()
     .AllowEquals().Name("equals").And()
     .AllowIn();
 }
Example #7
0
 protected override void Configure(
     IFilterInputTypeDescriptor <Foo> descriptor)
 {
     descriptor.BindFieldsExplicitly();
     descriptor.Filter(x => x.BarShort);
     descriptor.Filter(x => x.BarInt);
     descriptor.Filter(x => x.BarLong);
     descriptor.Filter(x => x.BarFloat);
     descriptor.Filter(x => x.BarDouble);
     descriptor.Filter(x => x.BarDecimal);
     descriptor.Filter(x => x.FooBar);
 }
Example #8
0
 protected override void Configure(
     IFilterInputTypeDescriptor <FooNullable> descriptor)
 {
     descriptor.Filter(x => x.BarShort);
 }
 protected override void Configure(
     IFilterInputTypeDescriptor <Foo> descriptor)
 {
     descriptor.Filter(x => x.Bar);
 }
Example #10
0
 protected override void Configure(
     IFilterInputTypeDescriptor <Foo> descriptor)
 {
     descriptor.Filter(t => t.Bar)
     .BindFiltersImplicitly();
 }
 protected override void Configure(
     IFilterInputTypeDescriptor <EvenDeeper> descriptor)
 {
     descriptor.Filter(t => t.Foo).AllowObject(x => x.Filter(y => y.FooNested).AllowObject(z => z.Filter(z => z.Bar)));
 }
 protected override void Configure(
     IFilterInputTypeDescriptor <Foo> descriptor)
 {
     descriptor.Filter(t => t.FooNested).AllowObject(x => x.Filter(y => y.Bar));
 }
 protected override void Configure(IFilterInputTypeDescriptor <MailGroup> descriptor)
 {
     descriptor.Filter(x => x.Name).BindFiltersImplicitly();
 }
 protected override void Configure(IFilterInputTypeDescriptor <StudentTestQuestionDto> descriptor)
 {
     descriptor.Filter(e => e.Id).AllowEquals();
     descriptor.Filter(e => e.StudentTestSessionId).AllowEquals();
 }
 protected override void Configure(
     IFilterInputTypeDescriptor <City> descriptor)
 {
     // We want to exclude this property from the generated filters
     descriptor.Filter(c => c.CountryCode).BindFiltersExplicitly();
 }
Example #16
0
 protected override void Configure(
     IFilterInputTypeDescriptor <City> descriptor)
 {
     descriptor.BindFieldsExplicitly();
     descriptor.Filter(c => c.IsCapitalCity);
 }