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