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

Copy() public method

Returns a Typed VIndividualCustomerBase Entity
public Copy ( ) : VIndividualCustomerBase
return VIndividualCustomerBase
		public virtual VIndividualCustomerBase Copy()
		{
			//shallow copy entity
			VIndividualCustomer copy = new VIndividualCustomer();
				copy.CustomerId = this.CustomerId;
				copy.Title = this.Title;
				copy.FirstName = this.FirstName;
				copy.MiddleName = this.MiddleName;
				copy.LastName = this.LastName;
				copy.Suffix = this.Suffix;
				copy.Phone = this.Phone;
				copy.EmailAddress = this.EmailAddress;
				copy.EmailPromotion = this.EmailPromotion;
				copy.AddressType = this.AddressType;
				copy.AddressLine1 = this.AddressLine1;
				copy.AddressLine2 = this.AddressLine2;
				copy.City = this.City;
				copy.StateProvinceName = this.StateProvinceName;
				copy.PostalCode = this.PostalCode;
				copy.CountryRegionName = this.CountryRegionName;
				copy.Demographics = this.Demographics;
			copy.AcceptChanges();
			return (VIndividualCustomer)copy;
		}