Exemplo n.º 1
0
 internal SqlInsertTable(Sql database, SqlTable table, string[] columns) : base(database, table, SqlExecuteType.Execute)
 {
     this.columns = columns;
 }
Exemplo n.º 2
0
 public override string FormatDeleteFromWhere(SqlTable table, string where, bool output) => $"delete from {table.Ident}{FormatOutput(output)}{FormatWhere(where)}";
Exemplo n.º 3
0
 public override string FormatDeleteTableFromWhere(SqlTable table, string whereColumn, object[] whereKeys, bool output) => $"delete from {table.Ident}{FormatOutput(output)} where {whereColumn} in {FormatQuery(whereKeys)}";
Exemplo n.º 4
0
 public override string FormatUpdateSetWhere(SqlTable table, string set, string where, bool output) => $"update {table.Ident} set {set}{FormatOutput(output)}{FormatWhere(where)}";
Exemplo n.º 5
0
 public override string FormatUpdateTableWhere(SqlTable table, string whereColumn, object[] whereKeys, bool output) => $"{FormatOutput(output)} where {whereColumn} in {FormatQuery(whereKeys)}";
Exemplo n.º 6
0
 public override string FormatFromAlias(SqlTable table) => $"{FormatFromStatementOrTable(table)}{(table.TableSample > 0 ? $" tablesample({table.TableSample})" : "")}{table.Alias.Format(s => $" {s}")}";
Exemplo n.º 7
0
 public override string FormatInsertIntoValues(SqlTable table, string[] columns, bool output) => $"insert into {table.Ident}({columns.Join(", ")}){FormatOutput(output)} values";
Exemplo n.º 8
0
 internal SqlQueryBase(Sql database, SqlTable table, SqlExecuteType type) : base(database)
 {
     Table = table;
     Type  = type;
 }
Exemplo n.º 9
0
 internal SqlUpdateEntry(Sql database, SqlTable table) : base(database, table)
 {
 }
Exemplo n.º 10
0
 internal SqlUpdateTableEntry(Sql database, SqlTable table, object where, SqlExecuteBase updateTable) : base(database, table)
 {
     Where            = where;
     this.updateTable = updateTable;
 }
Exemplo n.º 11
0
 internal SqlUpdateTable(Sql database, SqlTable table, string whereColumn) : base(database, table, SqlExecuteType.Execute)
 {
     WhereColumn = whereColumn;
 }
Exemplo n.º 12
0
 internal SqlUpdateEntryBase(Sql database, SqlTable table) : base(database, table, SqlExecuteType.Execute)
 {
     Update = new SqlUpdateSets();
 }
Exemplo n.º 13
0
        internal SqlDeleteTable(Sql database, SqlTable table, string whereColumn) : base(database, table, SqlExecuteType.Execute)
        {
            WhereColumn = whereColumn;

            entries = new List <object>();
        }
Exemplo n.º 14
0
 internal SqlDeleteEntry(Sql database, SqlTable table) : base(database, table, SqlExecuteType.Execute)
 {
 }