示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (AddressId == default(int) ? 0 : AddressId.GetHashCode());
         hash = hash * 23 + (AddressTypeId == default(int) ? 0 : AddressTypeId.GetHashCode());
         hash = hash * 23 + (BusinessEntityId == default(int) ? 0 : BusinessEntityId.GetHashCode());
         hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode());
         hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode());
         return(hash);
     }
 }
 /// <summary>
 /// Get address type with the given id.
 /// </summary>
 /// <param name="userContext">User context.</param>
 /// <param name="addressTypeId">Address type id.</param>
 /// <returns>Address type with the given id.</returns>
 public virtual IAddressType GetAddressType(IUserContext userContext,
                                            AddressTypeId addressTypeId)
 {
     return(GetAddressTypes(userContext).Get(addressTypeId));
 }
 /// <summary>
 /// Get address type with specified id.
 /// </summary>
 /// <param name='addressTypeId'>Id of address type.</param>
 /// <returns>Requested address type.</returns>
 /// <exception cref="ArgumentException">Thrown if no data has the requested id.</exception>
 public IAddressType Get(AddressTypeId addressTypeId)
 {
     return(Get((Int32)addressTypeId));
 }