示例#1
0
        static void Main(string[] args)
        {
            IConfigurationRoot configuration = LoadConfiguration();
            IServiceProvider   provider      = ServiceConfiguration.CreateServiceProvider(configuration);

            ICloner cloner = provider.GetService <ICloner>();

            cloner.CloneSolution();
            Console.ReadKey();
        }
示例#2
0
        static void Main(string[] args)
        {
            IConfigurationRoot configuration = LoadConfiguration();
            IServiceProvider   provider      = ServiceConfiguration.CreateServiceProvider(configuration);

            IMigrator migrator = provider.GetService <IMigrator>();

            migrator.Migrate();
            Console.ReadKey();
        }