コード例 #1
0
        public virtual ApiProductInventoryResponseModel MapBOToModel(
            BOProductInventory boProductInventory)
        {
            var model = new ApiProductInventoryResponseModel();

            model.SetProperties(boProductInventory.ProductID, boProductInventory.Bin, boProductInventory.LocationID, boProductInventory.ModifiedDate, boProductInventory.Quantity, boProductInventory.Rowguid, boProductInventory.Shelf);

            return(model);
        }
コード例 #2
0
        public virtual BOProductInventory MapEFToBO(
            ProductInventory ef)
        {
            var bo = new BOProductInventory();

            bo.SetProperties(
                ef.ProductID,
                ef.Bin,
                ef.LocationID,
                ef.ModifiedDate,
                ef.Quantity,
                ef.Rowguid,
                ef.Shelf);
            return(bo);
        }
コード例 #3
0
        public virtual ProductInventory MapBOToEF(
            BOProductInventory bo)
        {
            ProductInventory efProductInventory = new ProductInventory();

            efProductInventory.SetProperties(
                bo.Bin,
                bo.LocationID,
                bo.ModifiedDate,
                bo.ProductID,
                bo.Quantity,
                bo.Rowguid,
                bo.Shelf);
            return(efProductInventory);
        }
コード例 #4
0
        public virtual BOProductInventory MapModelToBO(
            int productID,
            ApiProductInventoryRequestModel model
            )
        {
            BOProductInventory boProductInventory = new BOProductInventory();

            boProductInventory.SetProperties(
                productID,
                model.Bin,
                model.LocationID,
                model.ModifiedDate,
                model.Quantity,
                model.Rowguid,
                model.Shelf);
            return(boProductInventory);
        }