Example #1
0
        static void Main(string[] args)
        {
            var repository = new ServerDataRepository(); //we can use any DI to initiate our repositories

            var processedData = GetProcessedData(repository);

            var dataMigrater = new DataMigrater(processedData, repository);

            Console.WriteLine("Data migration started...");

            dataMigrater.Migrate();

            Console.WriteLine("Data migration completed...");

            Console.ReadLine();
        }
Example #2
0
        static void Main(string[] args)
        {
            var repository = new ServerDataRepository(); //we can use any DI to initiate our repositories

            var processedData = GetProcessedData(repository);

            var dataMigrater = new DataMigrater(processedData,repository);

            Console.WriteLine("Data migration started...");

            dataMigrater.Migrate();

            Console.WriteLine("Data migration completed...");

            Console.ReadLine();

        }