Example #1
0
 public SqlQueryWhere(SqlQueryTable <T> table, string columnName, Dictionary <string, object> parameters)
 {
     _column     = columnName;
     _table      = table;
     _where      = new StringBuilder();
     _parameters = parameters;
 }
Example #2
0
 public SqlQueryOrderBy(SqlQueryTable <T> table, string column, string alias, bool descending = false)
 {
     _table     = table;
     _column    = column;
     _direction = descending ? "DESC" : "ASC";
     _alias     = alias;
     _thenBy    = new StringBuilder();
 }
Example #3
0
 public SqlQueryRightJoin(SqlQueryTable <T> tableOne, SqlQueryTable <S> tableTwo) : base(tableOne, tableTwo)
 {
 }
Example #4
0
 public SqlQueryInnerJoin(SqlQueryTable <T> tableOne, SqlQueryTable <S> tableTwo) : base(tableOne, tableTwo)
 {
 }
Example #5
0
 protected SqlQueryJoin(SqlQueryTable <T> tableOne, SqlQueryTable <S> tableTwo)
 {
     TableTwo = tableTwo;
     TableOne = tableOne;
 }
Example #6
0
 public SqlQueryTable <T> From(string tableName, string schema)
 {
     return(_from = new SqlQueryTable <T>(_queryBuilder, tableName, schema));
 }