Esempio n. 1
0
 public SelectQuery(Dialect dialect, TableCollection tables, string whereClause, ISortQueryBuilder orderBy, bool useAltName)
 {
     Dialect = dialect;
     Tables = tables;
     WhereClause = whereClause;
     OrderBy = orderBy;
     UseAltName = useAltName;
 }
Esempio n. 2
0
 public UpdateQuery(Dialect dialect, ColumnMapCollection columns, DbCommand command, string target, string whereClause)
 {
     Dialect = dialect;
     Target = target;
     Columns = columns;
     Command = command;
     WhereClause = whereClause;
 }
 public InsertQueryBuilder(DataMapper db)
 {
     _db              = db;
     _tableName       = MapRepository.Instance.GetTableName(typeof(T));
     _previousSqlMode = _db.SqlMode;
     _mappingHelper   = new MappingHelper(_db);
     _mappings        = MapRepository.Instance.GetColumns(typeof(T));
     _dialect         = QueryFactory.CreateDialect(_db);
 }
Esempio n. 4
0
 public InsertQuery(Dialect dialect, ColumnMapCollection columns, DbCommand command, string target)
 {
     if (string.IsNullOrEmpty(target))
     {
         throw new DataMappingException("A target table must be passed in or set in a TableAttribute.");
     }
     Dialect = dialect;
     Target = target;
     Columns = columns;
     Command = command;
 }
 public static IQuery CreateDeleteQuery(Dialects.Dialect dialect, Table targetTable, string whereClause)
 {
     return(new DeleteQuery(dialect, targetTable, whereClause));
 }
Esempio n. 6
0
 public DeleteQuery(Dialects.Dialect dialect, Table targetTable, string whereClause)
 {
     Dialect = dialect;
     TargetTable = targetTable;
     WhereClause = whereClause;
 }
Esempio n. 7
0
 public DeleteQuery(Dialects.Dialect dialect, Table targetTable, string whereClause)
 {
     Dialect     = dialect;
     TargetTable = targetTable;
     WhereClause = whereClause;
 }
Esempio n. 8
0
 public static IQuery CreateDeleteQuery(Dialect dialect, Table targetTable, string whereClause)
 {
     return new DeleteQuery(dialect, targetTable, whereClause);
 }