Beispiel #1
0
 public void Add(SQLVars vars)
 {
     foreach (var v in vars.GetFields())
     {
         Fields.Add(v);
     }
 }
 public SQLInsertTableMultiValues(string tablename, SQLVars fields, List <SQLVars> Values) : this(tablename, fields)
 {
     foreach (var v in Values)
     {
         if (v.Count() == Fields.Count())
         {
             Values.Add(v);
         }
     }
 }
Beispiel #3
0
 public void SetWhereTable(string table, SQLVars selectfields)
 {
     WhereTable = new SQLJoinTable(table, selectfields);
 }
Beispiel #4
0
 public SQLSelectTable(string maintab, SQLVars selfield, SQLWhereVars wherefield, SQLVars groupby) : this(maintab, selfield, wherefield)
 {
     GroupBy = groupby;
 }
Beispiel #5
0
 public SQLSelectTable(string maintab, SQLVars selfield, SQLWhereVars wherefield, SQLVars groupby, SQLOrderVars orderbyfields) : this(maintab, selfield, wherefield, groupby)
 {
     OrderByFields = orderbyfields;
 }
 new public void AddSelectField(string field1)
 {
     SelectFields = new SQLVars();
     SelectFields.Add(new SQLVar(field1));
 }
Beispiel #7
0
 public void AddSelectTable(string maintable, SQLVars selectfields, SQLWhereVars wherefields)
 {
     SelectTable = new SQLJoinTable(maintable, selectfields, wherefields);
 }
 public SQLInsertTableMultiValues(string tablename, SQLVars fields) : this(tablename)
 {
     Fields = fields;
 }
 public void SetFields(SQLVars fields)
 {
     Fields = fields;
 }
Beispiel #10
0
 public SQLCreateIndex(string index, string table, SQLVars columns, bool isunique = false) : this(index, table, isunique)
 {
     Columns.Add(columns);
 }
Beispiel #11
0
 public SQLJoinTable(string maintable, SQLVars selectfields) : base(maintable, selectfields)
 {
 }
Beispiel #12
0
 public SQLSelectExistsTable(string table, SQLVars selectfields, SQLJoinTable wheretable) : this(table, selectfields)
 {
     WhereTable = wheretable;
 }
Beispiel #13
0
 public SQLSelectExistsTable(string table, SQLVars selectfields, SQLSelectTable wheretable) : this(table, selectfields, new SQLJoinTable(wheretable))
 {
 }
Beispiel #14
0
 public SQLSelectExistsTable(string table, SQLVars selectfields) : base(table, selectfields)
 {
 }
Beispiel #15
0
 public void AddField(SQLVars vars)
 {
     Fields.Add(vars);
 }
Beispiel #16
0
 public SQLInsertIntoSelectTable(string nm, SQLVars fields, SQLSelectTable selectable) : this(nm, fields)
 {
     SelectTable = new SQLJoinTable(selectable);
 }
Beispiel #17
0
 public SQLInsertIntoSelectTable(string nm, SQLVars fields) : this(nm)
 {
     Fields = fields;
 }
Beispiel #18
0
 public void AddSelectTable(string maintable, List <string> jointables, List <SQLJoinFields> joinfields, SQLVars selectfields, SQLWhereVars wherefields)
 {
     SelectTable = new SQLJoinTable(maintable, jointables, joinfields, selectfields, wherefields);
 }
Beispiel #19
0
 public SQLJoinTable(string maintable, List <string> jointables, List <SQLJoinFields> joinfields, SQLVars selectfields, SQLWhereVars wherefields) : base(maintable, selectfields, wherefields)
 {
     if (jointables.Count == joinfields.Count)
     {
         JoinTables = jointables;
         JoinFields = joinfields;
     }
 }
Beispiel #20
0
 public SQLCreateView(string maintable, SQLVars selectfields, SQLWhereVars wherefields, string viewname) : base(maintable, selectfields, wherefields)
 {
     SetViewName(viewname);
 }
Beispiel #21
0
 public SQLJoinTable(string maintable, SQLVars selectfields, SQLWhereVars wherefields) : base(maintable, selectfields, wherefields)
 {
 }
Beispiel #22
0
 public SQLSelectBetweenTable(string maintable, SQLVars selectfields, SQLWhereVars wherefields, bool unot = false) : base(maintable, selectfields, wherefields)
 {
     usenot = unot;
 }
Beispiel #23
0
 public void AddSelectField(SQLVars field)
 {
     SelectFields.Add(field);
 }
Beispiel #24
0
 public SQLSelectTable(string maintab, SQLVars selfied) : this(maintab)
 {
     SelectFields = selfied;
 }
Beispiel #25
0
 new public void AddSelectField(SQLVars field)
 {
     SelectFields = new SQLVars();
     SelectFields.Add(field);
 }
Beispiel #26
0
 public SQLSelectTable(string maintab, SQLVars selfield, SQLWhereVars wherefield) : this(maintab, selfield)
 {
     WhereFields = wherefield;
 }
Beispiel #27
0
 new public void AddSelectField(params string[] fields)
 {
     SelectFields = new SQLVars();
     SelectFields.Add(new SQLVar(fields[0]));
 }
Beispiel #28
0
 public SQLSelectIntoTable(string maintable, List <string> jointables, List <SQLJoinFields> joinfields, SQLVars selectfields, SQLWhereVars wherefields, string destinationtable = "", string externaldb = "") : base(maintable, jointables, joinfields, selectfields, wherefields)
 {
     DestinationTable = destinationtable;
     ExternalDB       = externaldb;
 }