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

Copy() public method

Returns a Typed VIndividualDemographicsBase Entity
public Copy ( ) : VIndividualDemographicsBase
return VIndividualDemographicsBase
		public virtual VIndividualDemographicsBase Copy()
		{
			//shallow copy entity
			VIndividualDemographics copy = new VIndividualDemographics();
				copy.CustomerId = this.CustomerId;
				copy.TotalPurchaseYtd = this.TotalPurchaseYtd;
				copy.DateFirstPurchase = this.DateFirstPurchase;
				copy.BirthDate = this.BirthDate;
				copy.MaritalStatus = this.MaritalStatus;
				copy.YearlyIncome = this.YearlyIncome;
				copy.Gender = this.Gender;
				copy.TotalChildren = this.TotalChildren;
				copy.NumberChildrenAtHome = this.NumberChildrenAtHome;
				copy.Education = this.Education;
				copy.Occupation = this.Occupation;
				copy.HomeOwnerFlag = this.HomeOwnerFlag;
				copy.NumberCarsOwned = this.NumberCarsOwned;
			copy.AcceptChanges();
			return (VIndividualDemographics)copy;
		}