コード例 #1
0
 public void UpdateDatabase(SchemaVersion version)
 {
     Console.WriteLine(
         "This is not suggested to be used as the methods might be newer, make sure you have the correct methods version checked out when not updating to the latest schema version.");
     DirectoryManager.GetUpdateScripts(GetVersion()).Where(v => v.Version <= version).ToList().ForEach(
         s => s.ApplyUpdate(this));
 }
コード例 #2
0
        public void MarkSchemaChangesWithLatestVersion()
        {
            var currentVersion = _migrationsServer.Database.Version;
            var updates        = DirectoryManager.GetUpdateScripts(currentVersion);

            updates.ForEach(u => _migrationsServer.Database.UpdateSchemaChangesTable(u.Version, u.UpdateFile.Name));
        }
コード例 #3
0
 public void UpdateDatabase()
 {
     DirectoryManager.GetUpdateScripts(GetVersion()).ForEach(s => s.ApplyUpdate(this));
     _migrationsServer.Database.DropMethods();
     CreateMethods();
 }