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

Copy() public method

Returns a Typed VEmployeeDepartmentBase Entity
public Copy ( ) : VEmployeeDepartmentBase
return VEmployeeDepartmentBase
		public virtual VEmployeeDepartmentBase Copy()
		{
			//shallow copy entity
			VEmployeeDepartment copy = new VEmployeeDepartment();
				copy.EmployeeId = this.EmployeeId;
				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.Department = this.Department;
				copy.GroupName = this.GroupName;
				copy.StartDate = this.StartDate;
			copy.AcceptChanges();
			return (VEmployeeDepartment)copy;
		}