Esempio n. 1
0
 internal static string WithExpression <T>(Expression <Func <T, object> > column, bool comma)
 {
     return(FunctionHelper.BuildFunctionWithExpression(Constants.Sql.Len, column, comma));
 }
Esempio n. 2
0
 internal static string WithString(string column, bool comma)
 {
     return(FunctionHelper.BuildFunctionWithString(Constants.Sql.Len, column, comma));
 }
Esempio n. 3
0
 internal static string WithString(string expression)
 {
     return(FunctionHelper.BuildFunctionWithString(Constants.Sql.Case, expression, false, false));
 }
Esempio n. 4
0
 internal static string WihtExpression <T>(Expression <Func <T, object> > condition)
 {
     return(FunctionHelper.BuildFunctionWithExpression(Constants.Sql.If, condition, false, false));
 }
Esempio n. 5
0
        internal static string WithExpression <T>(Expression <Func <T, object> > column, bool asc)
        {
            var condition = FunctionHelper.BuildFunctionWithExpression(Constants.Sql.OrderBy, column, false, false);

            return(string.Concat(condition, asc ? Constants.Sql.Asc : Constants.Sql.Desc));
        }