Exemple #1
0
 protected DbModule(SqliteDbInterface dbInterface, SqLiteDb db)
 {
     DbInterface    = dbInterface;
     Db             = db;
     AllColumnNames = new string[AllColumns.Length];
     for (int i = 0; i < AllColumns.Length; i++)
     {
         AllColumnNames[i] = AllColumns[i].Name;
     }
 }
        protected SqliteDbInterface(string dbPath, Type updateSchemaClass)
        {
            _db = new SqLiteDb(dbPath);

            InitModules(_db);

            DbUpdateSchema updateSchema = (DbUpdateSchema)Activator.CreateInstance(updateSchemaClass);

            updateSchema.Init(_db, this);
            updateSchema.CheckForDbSchemaUpdates();
        }
 public DbObjectModule(SqliteDbInterface dbInterface, SqLiteDb db) : base(dbInterface, db)
 {
 }
 protected abstract void InitModules(SqLiteDb db);