Beispiel #1
0
        public Repository()
        {
            var container = IoCContainerFactory.GetInstance();

            //DI
            Customers     = container.Create <IDataSet <Customer> >();
            Descriptions  = container.Create <IDataSet <Description> >();
            Employees     = container.Create <IDataSet <Employee> >();
            Positions     = container.Create <IDataSet <Position> >();
            Orders        = container.Create <IDataSet <Order> >();
            Products      = container.Create <IDataSet <Product> >();
            ProductOrders = container.Create <IDataSet <ProductOrder> >();
        }
Beispiel #2
0
 public ProductDepartmentMenu()
 {
     _service = IoCContainerFactory
                .GetInstance()
                .Create <IProductDepartmentService>();
 }