Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            DesignTimeDbContextFactory dbFactory = new DesignTimeDbContextFactory();

            RoutingNumberImport import = WireUpRoutingNumberImport();

            import.Import();

            Console.ReadLine();
        }
Ejemplo n.º 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);
        }