Ejemplo n.º 1
0
        public CaseBuilder <DbDateTimeCaseFunctionValue, DbDateTime> When(DbBool when, DbDateTime then)
        {
            var result = new CaseBuilder <DbDateTimeCaseFunctionValue, DbDateTime>(new DbDateTimeCaseFunctionValue());

            result.When(when, then);

            return(result);
        }
Ejemplo n.º 2
0
        public CaseBuilder <DbStringCaseFunctionValue, DbString> When(DbBool when, DbString then)
        {
            var result = new CaseBuilder <DbStringCaseFunctionValue, DbString>(new DbStringCaseFunctionValue());

            result.When(when, then);

            return(result);
        }
Ejemplo n.º 3
0
        public CaseBuilder <DbDecimalCaseFunctionValue, DbDecimal> When(DbBool when, DbDecimal then)
        {
            var result = new CaseBuilder <DbDecimalCaseFunctionValue, DbDecimal>(new DbDecimalCaseFunctionValue());

            result.When(when, then);

            return(result);
        }
Ejemplo n.º 4
0
        public CaseBuilder <DbEnumCaseFunctionValue <T>, DbEnum <T> > When <T>(DbBool when, DbEnum <T> then)
            where T : struct, Enum
        {
            var result = new CaseBuilder <DbEnumCaseFunctionValue <T>, DbEnum <T> >(new DbEnumCaseFunctionValue <T>());

            result.When(when, then);

            return(result);
        }