コード例 #1
0
        static void Main(string[] args)
        {
            DesignTimeDbContextFactory dbFactory = new DesignTimeDbContextFactory();

            RoutingNumberImport import = WireUpRoutingNumberImport();

            import.Import();

            Console.ReadLine();
        }
コード例 #2
0
        static RoutingNumberImport WireUpRoutingNumberImport()
        {
            DesignTimeDbContextFactory dbFactory = new DesignTimeDbContextFactory();
            ConsoleLogger log = new ConsoleLogger();

            RoutingNumberImport import = new RoutingNumberImport(
                new UnitOfWork(dbFactory.CreateDbContext(new string[] { }), log),
                log);


            return(import);
        }