Migrate() public method

public Migrate ( ) : void
return void
Example #1
0
		static int Main(string[] args)
		{				
			try
			{
				MigrationProject project = ParseCommandLine(args);
				WriteLine("Bamboo.Prevalence Version Migrator 1.0");
				MigrationContext context = new MigrationContext(project);			
				context.Migrate();			
			}
			catch (Exception x)
			{
				WriteLine(x.Message);
				return -1;
			}
			
			return 0;
		}
Example #2
0
		private void Migrate()
		{
			MigrationContext context = new MigrationContext(_project);
			
			context.ResolveAssembly += new ResolveEventHandler(HandleResolveAssembly);

			try
			{
				context.Migrate();
			}
			finally
			{
				_resolvedAssemblies.Clear();
			}
		}