Nettiers.AdventureWorks.Entities.VSalesPersonBase.Copy C# (CSharp) 메소드

Copy() 공개 메소드

Returns a Typed VSalesPersonBase Entity
public Copy ( ) : VSalesPersonBase
리턴 VSalesPersonBase
		public virtual VSalesPersonBase Copy()
		{
			//shallow copy entity
			VSalesPerson copy = new VSalesPerson();
				copy.SalesPersonId = this.SalesPersonId;
				copy.Title = this.Title;
				copy.FirstName = this.FirstName;
				copy.MiddleName = this.MiddleName;
				copy.LastName = this.LastName;
				copy.Suffix = this.Suffix;
				copy.JobTitle = this.JobTitle;
				copy.Phone = this.Phone;
				copy.EmailAddress = this.EmailAddress;
				copy.EmailPromotion = this.EmailPromotion;
				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.TerritoryName = this.TerritoryName;
				copy.TerritoryGroup = this.TerritoryGroup;
				copy.SalesQuota = this.SalesQuota;
				copy.SalesYtd = this.SalesYtd;
				copy.SalesLastYear = this.SalesLastYear;
			copy.AcceptChanges();
			return (VSalesPerson)copy;
		}