Example #1
0
 public static IValueAccessor <GraphQLNotNull <GraphQLBoolean> > Bool <T1>(
     this JsonQueryBuilder builder,
     IDbFragment <T1> value1,
     Func <T1, bool?> transformer)
 {
     return(builder.Select <GraphQLBoolean, T1, bool?>(value1, transformer));
 }
Example #2
0
        // ---

        public static IValueAccessor <GraphQLNotNull <GraphQLString> > String <T1>(
            this JsonQueryBuilder builder,
            IDbFragment <T1> value1,
            Func <T1, string> transformer)
        {
            return(builder.Select <GraphQLString, T1, string>(value1, transformer));
        }
Example #3
0
 public static IValueAccessor <GraphQLNotNull <GraphQLInt> > Int <T1>(
     this JsonQueryBuilder builder,
     IDbFragment <T1> value1,
     Func <T1, int?> transformer)
 {
     return(builder.Select <GraphQLInt, T1, int?>(value1, transformer));
 }
Example #4
0
 public static IValueAccessor <GraphQLNotNull <GraphQLFloat> > Float <T1, T2>(
     this JsonQueryBuilder builder,
     IDbFragment <T1> value1,
     IDbFragment <T2> value2,
     Func <T1, T2, decimal?> transformer)
 {
     return(builder.Select <GraphQLFloat, T1, T2, decimal?>(value1, value2, transformer));
 }
Example #5
0
 public static IValueAccessor <GraphQLNotNull <GraphQLBoolean> > Bool <T1, T2, T3, T4>(
     this JsonQueryBuilder builder,
     IDbFragment <T1> value1,
     IDbFragment <T2> value2,
     IDbFragment <T3> value3,
     IDbFragment <T4> value4,
     Func <T1, T2, T3, T4, bool?> transformer)
 {
     return(builder.Select <GraphQLBoolean, T1, T2, T3, T4, bool?>(value1, value2, value3, value4, transformer));
 }
Example #6
0
        // ---

        public static IValueAccessor <GraphQLNotNull <GraphQLString> > String <T1, T2, T3, T4>(
            this JsonQueryBuilder builder,
            IDbFragment <T1> value1,
            IDbFragment <T2> value2,
            IDbFragment <T3> value3,
            IDbFragment <T4> value4,
            Func <T1, T2, T3, T4, string> transformer)
        {
            return(builder.Select <GraphQLString, T1, T2, T3, T4, string>(value1, value2, value3, value4, transformer));
        }
Example #7
0
 public static IValueAccessor <GraphQLNotNull <GraphQLInt> > Int <T1, T2, T3, T4, T5>(
     this JsonQueryBuilder builder,
     IDbFragment <T1> value1,
     IDbFragment <T2> value2,
     IDbFragment <T3> value3,
     IDbFragment <T4> value4,
     IDbFragment <T5> value5,
     Func <T1, T2, T3, T4, T5, int?> transformer)
 {
     return(builder.Select <GraphQLInt, T1, T2, T3, T4, T5, int?>(value1, value2, value3, value4, value5, transformer));
 }
Example #8
0
 public static IValueAccessor <GraphQLNotNull <GraphQLFloat> > Float <T1, T2, T3, T4, T5, T6>(
     this JsonQueryBuilder builder,
     IDbFragment <T1> value1,
     IDbFragment <T2> value2,
     IDbFragment <T3> value3,
     IDbFragment <T4> value4,
     IDbFragment <T5> value5,
     IDbFragment <T6> value6,
     Func <T1, T2, T3, T4, T5, T6, decimal?> transformer)
 {
     return(builder.Select <GraphQLFloat, T1, T2, T3, T4, T5, T6, decimal?>(value1, value2, value3, value4, value5, value6, transformer));
 }
Example #9
0
 public static IValueAccessor <GraphQLNotNull <GraphQLBoolean> > Bool(this JsonQueryBuilder builder, IDbFragment <bool> value)
 {
     return(builder.Select <GraphQLBoolean, bool?>(new TypeCastDbValue <bool?>(value)));
 }
Example #10
0
 public static IValueAccessor <GraphQLNotNull <GraphQLInt> > Int(this JsonQueryBuilder builder, IDbFragment <int> value)
 {
     return(builder.Select <GraphQLInt, int?>(new TypeCastDbValue <int?>(value)));
 }
Example #11
0
 public static IValueAccessor <GraphQLNotNull <GraphQLFloat> > Float(this JsonQueryBuilder builder, IDbFragment <decimal> value)
 {
     return(builder.Select <GraphQLFloat, decimal?>(new TypeCastDbValue <decimal?>(value)));
 }
Example #12
0
 public static IValueAccessor <GraphQLNotNull <GraphQLEnum <TEnum> > > Enum <TEnum>(this JsonQueryBuilder builder, IDbFragment <TEnum> value)
     where TEnum : struct, Enum
 {
     return(builder.Select <GraphQLEnum <TEnum>, TEnum?>(new TypeCastDbValue <TEnum?>(value)));
 }
Example #13
0
 public static IValueAccessor <GraphQLNotNull <GraphQLString> > String(this JsonQueryBuilder builder, IDbFragment <string> value)
 {
     return(builder.Select <GraphQLString, string>(value));
 }
Example #14
0
 public static IValueAccessor <GraphQLNotNull <GraphQLID> > Id(this JsonQueryBuilder builder, IDbFragment <Guid> value)
 {
     return(builder.Select <GraphQLID, string>(new TypeCastDbValue <string>(value)));
 }