Exemplo n.º 1
0
        public UnitOfWork(String environment = "development")
        {
            setConnectionString(environment);
            connection = new SqlConnection(connectionString);

            Comicstrips       = new ComicStripRepository(connection);
            ComicstripBundles = new ComicstripBundleRepository(connection);
            Publishers        = new PublisherRepository(connection);
            Authors           = new AuthorRepository(connection);
            Deliveries        = new DeliveryRepository(connection);
            Orders            = new OrderRepository(connection);
        }
 public APIDbDeliveryController()
 {
     repo = new DeliveryRepository();
 }