Example #1
0
        static public QueryContextInfo Create(QueryContextInfo clone)
        {
            QueryContextInfo context = new QueryContextInfo();

            context.SetContext(clone);
            return(context);
        }
Example #2
0
 public QueryContext(QueryContextInfo dqc, string db)
 {
     this.Context = new DatabaseContext <TConnection, TCommand, TAdapter, TParameter>();
     if (dqc != null)
     {
         this.Context.SetContext(dqc);
     }
     datafile = db;
 }
Example #3
0
 public void SetContext(QueryContextInfo clone)
 {
     this.SqlSort              = clone.SqlSort;
     this.SqlSortOrder         = clone.SqlSortOrder;
     this.tableAlias           = clone.tableAlias;
     this.TablePk              = clone.TablePk;
     this.TableFieldsAttribute = clone.TableFieldsAttribute;
     this.TableCategory        = clone.TableCategory;
     this.TableContent         = clone.TableContent;
     this.TableGroupsAttribute = clone.TableGroupsAttribute;
     this.TableName            = clone.TableName;
     this.TableTitle           = clone.TableTitle;
     this.TableInsertStamp     = clone.TableInsertStamp;
     this.CategoryName         = clone.CategoryName;
     this.CategoryPk           = clone.CategoryPk;
     this.CategoryMode         = clone.categoryMode;
     this.CategoryTitle        = clone.CategoryTitle;
     this.Generator            = clone.Generator;  // < \\
 }
Example #4
0
 public SQLiteContext(QueryContextInfo dbc, string path) : base(dbc, path)
 {
     Initialize();
     this.Context.Generator = "sqlite";
 }
Example #5
0
 public SQLiteContext(QueryContextInfo dbc) : this(dbc, dbc.tableFileName)
 {
 }
Example #6
0
 public OleDbContext(QueryContextInfo qdc, string file) : base(qdc, file)
 {
     this.Initialize();
     this.Context.Generator = "ole";
 }
Example #7
0
 public OleDbContext(QueryContextInfo qdc) : base(qdc, null)
 {
 }
Example #8
0
 public SqlContext(QueryContextInfo qdc) : base(qdc, null)
 {
 }
Example #9
0
 public QueryDatabaseContext(QueryContextInfo clone)
 {
     SetContext(clone);
 }
Example #10
0
 public QueryContext(QueryContextInfo dbc) : this(dbc, dbc.TableFile)
 {
 }