Example #1
0
        static void Main(string[] args)
        {
            //var dbMigrator = new DBMigrator(new ConsoleLogger());
            var dbMigrator = new DBMigrator(new FileLogger("C:\\projects\boh.txt"));

            dbMigrator.Migrate();
        }
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            var dbMigrator = new DBMigrator(new FileLogger("/tmp/log"));

            dbMigrator.Migrate();
        }
Example #3
0
        static void Main(string[] args)
        {
            var dbMigrator = new DBMigrator(new ConsoleLogger());

            dbMigrator.Migrate();

            // write to \debug\log.txt
            // Log info: Migrating start4/13/2019 6:05:13 PM
            // Log info: Migrating finish4/ 13 / 2019 6:05:13 PM
            dbMigrator = new DBMigrator(new FileLogger(".\\log.txt"));
            dbMigrator.Migrate();
        }