Field() public static method

public static Field ( Enum fieldName ) : SqlExpression
fieldName System.Enum
return SqlExpression
Beispiel #1
0
        public void AddCompare(Enum column, Parameter parameter, CompareOperator compareOperator)
        {
            WherePhrase.Terms.Add(WhereTerm.CreateCompare(SqlExpression.Field(column, fromClause.BaseTable),
                                                          compareOperator == CompareOperator.Like
                                                                        ? SqlExpression.LikeExpressionParameter()
                                                                        : SqlExpression.Parameter(), compareOperator));

            Parameters.Add(parameter);
        }
Beispiel #2
0
 public SelectColumn(string columnName, FromTerm table, SqlAggregationFunction function)
 {
     if (function == SqlAggregationFunction.None)
     {
         expr = SqlExpression.Field(columnName, table);
     }
     else
     {
         expr = SqlExpression.Function(function, SqlExpression.Field(columnName, table));
     }
 }
Beispiel #3
0
 public void AddCompare(string column, SqlExpression expression, CompareOperator compareOperator)
 {
     WherePhrase.Terms.Add(WhereTerm.CreateCompare(SqlExpression.Field(column, fromClause.BaseTable),
                                                   expression, compareOperator));
 }
Beispiel #4
0
 public WhereTerm CreateCompare(Enum column, SqlExpression expression, CompareOperator compareOperator)
 {
     return(WhereTerm.CreateCompare(SqlExpression.Field(column, fromClause.BaseTable),
                                    expression, compareOperator));
 }