Exemplo n.º 1
0
        static void Main(string[] args)
        {
            //var migrator = new DbMigrator(new FileLogger(@"E:\Documents\log.txt"));
            var migrator = new DbMigrator(new ConsoleLogger());

            migrator.Migrate();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var fileName = "Log_" + DateTime.Now.ToString("dd-MM-yyyy@HHmm") + ".txt";

            var dbMigrator = new DbMigrator(new FileLogger(fileName));
            dbMigrator.Migrate();
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new FileLogger("C:\\Users\\zach\\Documents\\log.txt"));

            dbMigrator.Migrate();
            Console.ReadLine();
        }
Exemplo n.º 4
0
        private static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new FileLogger(@"E:\Software\Projects\Personal\C# Intermediate Course\Extensibility\log.txt"));

            //var dbMigrator = new DbMigrator(new ConsoleLogger());
            dbMigrator.Migrate();
        }
Exemplo n.º 5
0
        static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new ConsoleLogger());

            //var dbMigrator = new DbMigrator(new FileLogger("C:\\users\\brian\\log.txt"));
            dbMigrator.Migrate();
        }
Exemplo n.º 6
0
        static void Main(string[] args)
        {
            //var dbMigrator = new DbMigrator(new ConsoleLogger());
            var dbMigrator = new DbMigrator(new FileLogger("/Users/jmcgee/Documents/cSharpIntermediate_Udemy/Section6/Extensibility/log.txt"));

            dbMigrator.Migrate();
        }
Exemplo n.º 7
0
        static void Main(string[] args)
        {
            //var dbMigrator = new DbMigrator(new ConsoleLogger());
            var dbMigrator = new DbMigrator(new FileLogger($"../../../logs/log{DateTime.Now.ToString("MM-dd-yyyy")}.txt"));

            dbMigrator.Migrate();
        }
Exemplo n.º 8
0
        static void Main(string[] args)
        {
            //var dbMigrator = new DbMigrator(new FileLogger("/Users/timothylewis/Documents/TimPractice/log.txt"));
            var dbMigrator = new DbMigrator(new ConsoleLogger());

            dbMigrator.Migrate();
        }
Exemplo n.º 9
0
        static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new FileLogger("c:\\log\\Log.txt"));

            dbMigrator.Migrate();
            Console.ReadKey();
        }
        static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new FileLogger(@"C:\\Projects\\log.txt"));

            dbMigrator.Migrate();

            Console.ReadLine();
        }
Exemplo n.º 11
0
        static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new ConsoleLogger());

            dbMigrator.Migrate();
            var dbMigrator2 = new DbMigrator(new FileLogger("C:\\Users\\c_l445\\Desktop\\log.txt"));

            dbMigrator2.Migrate();
        }
Exemplo n.º 12
0
        static void Main(string[] args)
        {
            var dbMigrator  = new DbMigrator(new FileLogger("C:\\Temp\\log.txt"));
            var dbMigtator1 = new DbMigrator(new ConsoleLogger());

            dbMigrator.Migrate();
            dbMigtator1.Migrate();
            Console.ReadKey();
        }
Exemplo n.º 13
0
        private static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new ConsoleLogger());

            dbMigrator.Migrate();

            var dbMirgrator2 = new DbMigrator(new FileLogger("C:\\Users\\antho\\Desktop\\migration.log"));

            dbMirgrator2.Migrate();
        }
Exemplo n.º 14
0
        static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new ConsoleLogger());

            dbMigrator.Migrate();

            var dbMigratorLogFile = new DbMigrator(new FileLogger(@"E:\Projects\CSharpFundamentals\LOG.txt"));

            dbMigratorLogFile.Migrate();
        }
Exemplo n.º 15
0
        static void Main(string[] args)
        {
            // We create a dbMigrator and pass a ConsoleLogger instance
            // to its constructor. DbMigrator be default writes to console,
            // but since I extended the method with FileLogger, I did not
            // touch the DbMigrator. This is called the Open/Closed Principle.
            var dbMigrator = new DbMigrator(new FileLogger("C:\\Users\\camer\\Projects\\Training\\Core\\Refresher_C-Sharp_Intermediate\\05 - Interfaces\\Extensibility"));

            dbMigrator.Migrate();
        }
Exemplo n.º 16
0
        static void Main(string[] args)
        {
            // DbMigrator only cares that whatever is passed to it INTERFACES with ILogger. This way, you can pass it
            // FileLogger or ConsoleLogger
            //var dbMigrator = new DbMigrator(new ConsoleLogger());

            var dbMigrator = new DbMigrator(new FileLogger("C:\\Users\\joshua.wood\\Documents\\Miscellaneous\\CSharp_Intermediate\\C-SharpIntermediate\\log.txt"));

            dbMigrator.Migrate();
        }
Exemplo n.º 17
0
        static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new ConsoleLogger());

            dbMigrator.Migrate();

            //first had console logging
            //added file logging without changing any previous code
            //with a new class that writes messages to a file instead
        }
Exemplo n.º 18
0
        static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new FileLogger(Directory.GetCurrentDirectory() + "\\log.txt"));

            dbMigrator.Migrate();
        }
Exemplo n.º 19
0
        static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new FileLogger(@"D:\PROECT-ASP\PROJECT-PUBLISH-VS15\CSharpLog.txt"));

            dbMigrator.Migrate();
        }
Exemplo n.º 20
0
        static void UseExtensibility()
        {
            var dbMigrator = new Extensibility.DbMigrator(new FileLogger("D:\\Learning\\log.txt"));

            dbMigrator.Migrate();
        }
Exemplo n.º 21
0
 static void Main(string[] args)
 {
     var dbMigrator = new DbMigrator(new ConsoleLogger());
     dbMigrator.Migrate();
 }
Exemplo n.º 22
0
        static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new Filelogger("C:\\Test\\log.txt"));

            dbMigrator.Migrate();
        }
Exemplo n.º 23
0
        static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new FileLogger(@"C:\Users\chris\Documents\CSharpTutorial\ExtensibilityOutput\Log.txt"));

            dbMigrator.Migrate();
        }
Exemplo n.º 24
0
        static void Main(string[] args)
        {
            DbMigrator dbMigrator = new DbMigrator(new FileLogger(@"C:\Users\bs009\Desktop\udemy_csharp\Extensibility\Extensibility\log.txt"));

            dbMigrator.Migrate();
        }
        static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new ConsoleLogger());

            dbMigrator.Migrate();
        }
Exemplo n.º 26
0
        static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new FileLogger("/Users/JuanCMontoya/Desktop/log.txt"));

            dbMigrator.Migrate();
        }
Exemplo n.º 27
0
        static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new FileLogger("C:\\Users\\user\\Downloads\\mosh.txt"));

            dbMigrator.Migrate();
        }
Exemplo n.º 28
0
        private static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new FileLogger("D:\\log.txt"));

            dbMigrator.Migrate();
        }
Exemplo n.º 29
0
        static void Main(string[] args)
        {
            var dbMigrator = new DbMigrator(new FileLogger("C:\\Users\\jeffp\\OneDrive\\Desktop\\CSharpExercises\\Interfaces\\log.txt"));

            dbMigrator.Migrate();
        }