Пример #1
0
        public Mapping()
        {
            Project2Entities entities = new Project2Entities();

            ShoppingCartRepo    = new ShoppingCartRepo(entities);
            UserRepo            = new UserRepo(entities);
            CustomPizzaRepo     = new CustomPizzaRepo(entities);
            StandardProductRepo = new StandardProductRepo(entities);
            CustIngredientsRepo = new CustIngredientsRepo(entities);
            OrderRepo           = new OrderRepo(entities);
            OrderDetailsRepo    = new OrderDetailRepo(entities);
        }
Пример #2
0
 public decimal Ini(IStandardProductRepo standardProductRepo)
 {
     Price = standardProductRepo.RetrieveById(Id).Price;
     return(Price);
 }