Esempio n. 1
0
 public WhereClauseBuilderWrapper(Property property, QueryBuilder <T> queryBuilder, WhereClauseBuilder whereClause)
 {
     LeftColumn             = property;
     this.whereClause       = whereClause;
     this.queryBuilder      = queryBuilder;
     whereClause.PropDbType = property.DbType;
 }
        WhereClauseBuilder BuildWhereClause(SqlOperator preOperator, string tableAlias, string columnName)
        {
            if (string.IsNullOrEmpty(columnName))
            {
                throw new ArgumentNullException("propertyName");
            }

            WhereClauseBuilder whereBuilder = new WhereClauseBuilder(this, columnName);

            whereBuilder.PreOperator = preOperator;
            whereBuilder.TableAlias  = tableAlias;
            whereClauses.Add(whereBuilder);

            return(whereBuilder);
        }