コード例 #1
0
ファイル: CardController.cs プロジェクト: geetika11/FuegoBox
        public CardController()
        {
            productDetailContext = new ProductDetailContext();
            cdc = new CartDetailContext();
            pdb = new ProductDetailDB();
            var config = new MapperConfiguration(cfg => {
                cfg.CreateMap <ProductDetail, ProductDetailDTO>();
            });
            var conf = new MapperConfiguration(cfg => {
                cfg.CreateMap <ViewCartDTO, ViewCartModel>();
            });

            productmapper = new Mapper(config);
            cartMapper    = new Mapper(conf);
        }
コード例 #2
0
 public ProductDetailContext()
 {
     ProductDBObject = new ProductDetailDB();
 }