Exemplo n.º 1
0
        protected override void RunDbSchemaUpdates(SqLiteDb db, SqliteDbInterface moduleInterface)
        {
            DbInterface localInterface = (DbInterface)moduleInterface;

            long version = db.GetVersion();

            if (version < CurrentVersion)
            {
                db.DropTables(localInterface.GetAllModules());
                db.CreateTables(localInterface.GetAllModules());
            }
        }
Exemplo n.º 2
0
 public DbHexContent(SqliteDbInterface dbInterface, SqLiteDb db) : base(dbInterface, db)
 {
 }
Exemplo n.º 3
0
 public void Init(SqLiteDb db, SqliteDbInterface moduleInterface)
 {
     _db = db;
     _moduleInterface = moduleInterface;
 }
Exemplo n.º 4
0
 protected abstract void RunDbSchemaUpdates(SqLiteDb db, SqliteDbInterface moduleInterface);