Ejemplo n.º 1
0
        public static void Init()
        {
            var db = new DbConnection(Config.GetDatabasePath(), DbProtection.GetDatabaseKey());

            CryptoKeys = new CryptoKeys {
                Db = db
            };
            Databases = new Databases {
                Db = db
            };
            DatabasesEntries = new DatabasesEntries {
                Db = db
            };
            DatabasesEntriesData = new DatabasesEntriesData {
                Db = db
            };
            DatabasesEntriesDataSync = new DatabasesEntriesDataSync {
                Db = db
            };
            DatabasesEntriesDataVersions = new DatabasesEntriesDataVersions {
                Db = db
            };
            DatabasesEntries = new DatabasesEntries {
                Db = db
            };
            DatabasesGroups = new DatabasesGroups {
                Db = db
            };
            DatabasesGroupsMeta = new DatabasesGroupsMeta {
                Db = db
            };
            DatabasesGroupsMetaSync = new DatabasesGroupsMetaSync {
                Db = db
            };
            DatabasesGroupsMetaVersions = new DatabasesGroupsMetaVersions {
                Db = db
            };
            DatabasesMeta = new DatabasesMeta {
                Db = db
            };
            DatabasesMetaSync = new DatabasesMetaSync {
                Db = db
            };
            DatabasesMetaVersions = new DatabasesMetaVersions {
                Db = db
            };
            ServerAccounts = new ServerAccounts {
                Db = db
            };
            ServerManagementAccounts = new ServerManagementAccounts {
                Db = db
            };
        }
Ejemplo n.º 2
0
        public static void Init()
        {
            var db = new DbConnection(Config.GetDatabasePath(), DbProtection.GetDatabaseKey());

            CryptoKeys = new CryptoKeys { Db = db };
            Databases = new Databases { Db = db };
            DatabasesEntries = new DatabasesEntries { Db = db };
            DatabasesEntriesData = new DatabasesEntriesData { Db = db };
            DatabasesEntriesDataSync = new DatabasesEntriesDataSync { Db = db };
            DatabasesEntriesDataVersions = new DatabasesEntriesDataVersions { Db = db };
            DatabasesEntries = new DatabasesEntries { Db = db };
            DatabasesGroups = new DatabasesGroups { Db = db };
            DatabasesGroupsMeta = new DatabasesGroupsMeta { Db = db };
            DatabasesGroupsMetaSync = new DatabasesGroupsMetaSync { Db = db };
            DatabasesGroupsMetaVersions = new DatabasesGroupsMetaVersions { Db = db };
            DatabasesMeta = new DatabasesMeta { Db = db };
            DatabasesMetaSync = new DatabasesMetaSync { Db = db };
            DatabasesMetaVersions = new DatabasesMetaVersions { Db = db };
            ServerAccounts = new ServerAccounts { Db = db };
            ServerManagementAccounts = new ServerManagementAccounts { Db = db };
        }