예제 #1
0
 public SelectQuery(Dialect dialect, TableCollection tables, string whereClause, ISortQueryBuilder orderBy, bool useAltName)
 {
     Dialect = dialect;
     Tables = tables;
     WhereClause = whereClause;
     OrderBy = orderBy;
     UseAltName = useAltName;
 }
예제 #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);
 }
예제 #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;
 }
예제 #5
0
 public static IQuery CreateDeleteQuery(Dialects.Dialect dialect, Table targetTable, string whereClause)
 {
     return(new DeleteQuery(dialect, targetTable, whereClause));
 }
예제 #6
0
 public DeleteQuery(Dialects.Dialect dialect, Table targetTable, string whereClause)
 {
     Dialect = dialect;
     TargetTable = targetTable;
     WhereClause = whereClause;
 }
예제 #7
0
 public DeleteQuery(Dialects.Dialect dialect, Table targetTable, string whereClause)
 {
     Dialect     = dialect;
     TargetTable = targetTable;
     WhereClause = whereClause;
 }
예제 #8
0
 public static IQuery CreateDeleteQuery(Dialect dialect, Table targetTable, string whereClause)
 {
     return new DeleteQuery(dialect, targetTable, whereClause);
 }