Nettiers.AdventureWorks.Entities.VAdditionalContactInfoBase.Copy C# (CSharp) Method

Copy() public method

Returns a Typed VAdditionalContactInfoBase Entity
public Copy ( ) : VAdditionalContactInfoBase
return VAdditionalContactInfoBase
		public virtual VAdditionalContactInfoBase Copy()
		{
			//shallow copy entity
			VAdditionalContactInfo copy = new VAdditionalContactInfo();
				copy.ContactId = this.ContactId;
				copy.FirstName = this.FirstName;
				copy.MiddleName = this.MiddleName;
				copy.LastName = this.LastName;
				copy.TelephoneNumber = this.TelephoneNumber;
				copy.TelephoneSpecialInstructions = this.TelephoneSpecialInstructions;
				copy.Street = this.Street;
				copy.City = this.City;
				copy.StateProvince = this.StateProvince;
				copy.PostalCode = this.PostalCode;
				copy.CountryRegion = this.CountryRegion;
				copy.HomeAddressSpecialInstructions = this.HomeAddressSpecialInstructions;
				copy.EmailAddress = this.EmailAddress;
				copy.EmailSpecialInstructions = this.EmailSpecialInstructions;
				copy.EmailTelephoneNumber = this.EmailTelephoneNumber;
				copy.Rowguid = this.Rowguid;
				copy.ModifiedDate = this.ModifiedDate;
			copy.AcceptChanges();
			return (VAdditionalContactInfo)copy;
		}