コード例 #1
0
        public virtual ApiSalesOrderDetailResponseModel MapBOToModel(
            BOSalesOrderDetail boSalesOrderDetail)
        {
            var model = new ApiSalesOrderDetailResponseModel();

            model.SetProperties(boSalesOrderDetail.SalesOrderID, boSalesOrderDetail.CarrierTrackingNumber, boSalesOrderDetail.LineTotal, boSalesOrderDetail.ModifiedDate, boSalesOrderDetail.OrderQty, boSalesOrderDetail.ProductID, boSalesOrderDetail.Rowguid, boSalesOrderDetail.SalesOrderDetailID, boSalesOrderDetail.SpecialOfferID, boSalesOrderDetail.UnitPrice, boSalesOrderDetail.UnitPriceDiscount);

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

            bo.SetProperties(
                ef.SalesOrderID,
                ef.CarrierTrackingNumber,
                ef.LineTotal,
                ef.ModifiedDate,
                ef.OrderQty,
                ef.ProductID,
                ef.Rowguid,
                ef.SalesOrderDetailID,
                ef.SpecialOfferID,
                ef.UnitPrice,
                ef.UnitPriceDiscount);
            return(bo);
        }
コード例 #3
0
        public virtual SalesOrderDetail MapBOToEF(
            BOSalesOrderDetail bo)
        {
            SalesOrderDetail efSalesOrderDetail = new SalesOrderDetail();

            efSalesOrderDetail.SetProperties(
                bo.CarrierTrackingNumber,
                bo.LineTotal,
                bo.ModifiedDate,
                bo.OrderQty,
                bo.ProductID,
                bo.Rowguid,
                bo.SalesOrderDetailID,
                bo.SalesOrderID,
                bo.SpecialOfferID,
                bo.UnitPrice,
                bo.UnitPriceDiscount);
            return(efSalesOrderDetail);
        }
コード例 #4
0
        public virtual BOSalesOrderDetail MapModelToBO(
            int salesOrderID,
            ApiSalesOrderDetailRequestModel model
            )
        {
            BOSalesOrderDetail boSalesOrderDetail = new BOSalesOrderDetail();

            boSalesOrderDetail.SetProperties(
                salesOrderID,
                model.CarrierTrackingNumber,
                model.LineTotal,
                model.ModifiedDate,
                model.OrderQty,
                model.ProductID,
                model.Rowguid,
                model.SalesOrderDetailID,
                model.SpecialOfferID,
                model.UnitPrice,
                model.UnitPriceDiscount);
            return(boSalesOrderDetail);
        }