示例#1
0
        public virtual ApiBusinessEntityAddressResponseModel MapBOToModel(
            BOBusinessEntityAddress boBusinessEntityAddress)
        {
            var model = new ApiBusinessEntityAddressResponseModel();

            model.SetProperties(boBusinessEntityAddress.BusinessEntityID, boBusinessEntityAddress.AddressID, boBusinessEntityAddress.AddressTypeID, boBusinessEntityAddress.ModifiedDate, boBusinessEntityAddress.Rowguid);

            return(model);
        }
示例#2
0
        public virtual BOBusinessEntityAddress MapEFToBO(
            BusinessEntityAddress ef)
        {
            var bo = new BOBusinessEntityAddress();

            bo.SetProperties(
                ef.BusinessEntityID,
                ef.AddressID,
                ef.AddressTypeID,
                ef.ModifiedDate,
                ef.Rowguid);
            return(bo);
        }
示例#3
0
        public virtual BusinessEntityAddress MapBOToEF(
            BOBusinessEntityAddress bo)
        {
            BusinessEntityAddress efBusinessEntityAddress = new BusinessEntityAddress();

            efBusinessEntityAddress.SetProperties(
                bo.AddressID,
                bo.AddressTypeID,
                bo.BusinessEntityID,
                bo.ModifiedDate,
                bo.Rowguid);
            return(efBusinessEntityAddress);
        }
示例#4
0
        public virtual BOBusinessEntityAddress MapModelToBO(
            int businessEntityID,
            ApiBusinessEntityAddressRequestModel model
            )
        {
            BOBusinessEntityAddress boBusinessEntityAddress = new BOBusinessEntityAddress();

            boBusinessEntityAddress.SetProperties(
                businessEntityID,
                model.AddressID,
                model.AddressTypeID,
                model.ModifiedDate,
                model.Rowguid);
            return(boBusinessEntityAddress);
        }