Example #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);
         }
     }
 }
Example #3
0
 public void SetWhereTable(string table, SQLVars selectfields)
 {
     WhereTable = new SQLJoinTable(table, selectfields);
 }
Example #4
0
 public SQLSelectTable(string maintab, SQLVars selfield, SQLWhereVars wherefield, SQLVars groupby) : this(maintab, selfield, wherefield)
 {
     GroupBy = groupby;
 }
Example #5
0
 public SQLSelectTable(string maintab, SQLVars selfield, SQLWhereVars wherefield, SQLVars groupby, SQLOrderVars orderbyfields) : this(maintab, selfield, wherefield, groupby)
 {
     OrderByFields = orderbyfields;
 }
Example #6
0
 new public void AddSelectField(string field1)
 {
     SelectFields = new SQLVars();
     SelectFields.Add(new SQLVar(field1));
 }
Example #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;
 }
Example #10
0
 public SQLCreateIndex(string index, string table, SQLVars columns, bool isunique = false) : this(index, table, isunique)
 {
     Columns.Add(columns);
 }
Example #11
0
 public SQLJoinTable(string maintable, SQLVars selectfields) : base(maintable, selectfields)
 {
 }
Example #12
0
 public SQLSelectExistsTable(string table, SQLVars selectfields, SQLJoinTable wheretable) : this(table, selectfields)
 {
     WhereTable = wheretable;
 }
Example #13
0
 public SQLSelectExistsTable(string table, SQLVars selectfields, SQLSelectTable wheretable) : this(table, selectfields, new SQLJoinTable(wheretable))
 {
 }
Example #14
0
 public SQLSelectExistsTable(string table, SQLVars selectfields) : base(table, selectfields)
 {
 }
Example #15
0
 public void AddField(SQLVars vars)
 {
     Fields.Add(vars);
 }
Example #16
0
 public SQLInsertIntoSelectTable(string nm, SQLVars fields, SQLSelectTable selectable) : this(nm, fields)
 {
     SelectTable = new SQLJoinTable(selectable);
 }
Example #17
0
 public SQLInsertIntoSelectTable(string nm, SQLVars fields) : this(nm)
 {
     Fields = fields;
 }
Example #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);
 }
Example #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;
     }
 }
Example #20
0
 public SQLCreateView(string maintable, SQLVars selectfields, SQLWhereVars wherefields, string viewname) : base(maintable, selectfields, wherefields)
 {
     SetViewName(viewname);
 }
Example #21
0
 public SQLJoinTable(string maintable, SQLVars selectfields, SQLWhereVars wherefields) : base(maintable, selectfields, wherefields)
 {
 }
Example #22
0
 public SQLSelectBetweenTable(string maintable, SQLVars selectfields, SQLWhereVars wherefields, bool unot = false) : base(maintable, selectfields, wherefields)
 {
     usenot = unot;
 }
Example #23
0
 public void AddSelectField(SQLVars field)
 {
     SelectFields.Add(field);
 }
Example #24
0
 public SQLSelectTable(string maintab, SQLVars selfied) : this(maintab)
 {
     SelectFields = selfied;
 }
Example #25
0
 new public void AddSelectField(SQLVars field)
 {
     SelectFields = new SQLVars();
     SelectFields.Add(field);
 }
Example #26
0
 public SQLSelectTable(string maintab, SQLVars selfield, SQLWhereVars wherefield) : this(maintab, selfield)
 {
     WhereFields = wherefield;
 }
Example #27
0
 new public void AddSelectField(params string[] fields)
 {
     SelectFields = new SQLVars();
     SelectFields.Add(new SQLVar(fields[0]));
 }
Example #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;
 }