示例#1
0
        static void Main(string[] args)
        {
            var dbMigrator = new Dbmigrator(new Logger());
            // can pass this obl=ject to the DBMigration installer
            var logger    = new Logger();
            var installer = new Installer(logger);

            dbMigrator.Migrate();
            installer.Install();
        }
        static void Main(string[] args)
        {
            var db     = new Dbmigrator(new Logger());
            var logger = new Logger();
            var inst   = new Installer(logger);

            db.migrate();
            inst.Install();
            Console.ReadKey();
        }