コード例 #1
0
        public static PropertyAddressDTO MapFieldValues(EF.PropertyAddress dbItem)
        {
            if (dbItem == null)
                return null;

            PropertyAddressDTO dto = new PropertyAddressDTO()
            {
                Apt = dbItem.Apt,
                City = dbItem.City,
                HouseNum = dbItem.HouseNum,
                Pin = dbItem.Pin,
                Street = dbItem.Street,
                StreetDir = dbItem.StreetDir,
                Suffix = dbItem.Suffix,
                Zip = dbItem.Zip
            };

            return dto;
        }
コード例 #2
0
 public virtual IPropertyAddress Create(PropertyAddressDTO dto)
 {
     return new PropertyAddress(dto);
 }
コード例 #3
0
 public PropertyAddress(PropertyAddressDTO data)
 {
     this.Data = data;
 }