Nettiers.AdventureWorks.Entities.VSalesPersonBase.CreateVSalesPerson C# (CSharp) Method

CreateVSalesPerson() public static method

A simple factory method to create a new VSalesPerson instance.
public static CreateVSalesPerson ( System _salesPersonId, System _title, System _firstName, System _middleName, System _lastName, System _suffix, System _jobTitle, System _phone, System _emailAddress, System _emailPromotion, System _addressLine1, System _addressLine2, System _city, System _stateProvinceName, System _postalCode, System _countryRegionName, System _territoryName, System _territoryGroup, System _salesQuota, System _salesYtd, System _salesLastYear ) : VSalesPerson
_salesPersonId System
_title System
_firstName System
_middleName System
_lastName System
_suffix System
_jobTitle System
_phone System
_emailAddress System
_emailPromotion System
_addressLine1 System
_addressLine2 System
_city System
_stateProvinceName System
_postalCode System
_countryRegionName System
_territoryName System
_territoryGroup System
_salesQuota System
_salesYtd System
_salesLastYear System
return VSalesPerson
		public static VSalesPerson CreateVSalesPerson(System.Int32 _salesPersonId, System.String _title, System.String _firstName, System.String _middleName, System.String _lastName, System.String _suffix, System.String _jobTitle, System.String _phone, System.String _emailAddress, System.Int32 _emailPromotion, System.String _addressLine1, System.String _addressLine2, System.String _city, System.String _stateProvinceName, System.String _postalCode, System.String _countryRegionName, System.String _territoryName, System.String _territoryGroup, System.Decimal? _salesQuota, System.Decimal _salesYtd, System.Decimal _salesLastYear)
		{
			VSalesPerson newVSalesPerson = new VSalesPerson();
			newVSalesPerson.SalesPersonId = _salesPersonId;
			newVSalesPerson.Title = _title;
			newVSalesPerson.FirstName = _firstName;
			newVSalesPerson.MiddleName = _middleName;
			newVSalesPerson.LastName = _lastName;
			newVSalesPerson.Suffix = _suffix;
			newVSalesPerson.JobTitle = _jobTitle;
			newVSalesPerson.Phone = _phone;
			newVSalesPerson.EmailAddress = _emailAddress;
			newVSalesPerson.EmailPromotion = _emailPromotion;
			newVSalesPerson.AddressLine1 = _addressLine1;
			newVSalesPerson.AddressLine2 = _addressLine2;
			newVSalesPerson.City = _city;
			newVSalesPerson.StateProvinceName = _stateProvinceName;
			newVSalesPerson.PostalCode = _postalCode;
			newVSalesPerson.CountryRegionName = _countryRegionName;
			newVSalesPerson.TerritoryName = _territoryName;
			newVSalesPerson.TerritoryGroup = _territoryGroup;
			newVSalesPerson.SalesQuota = _salesQuota;
			newVSalesPerson.SalesYtd = _salesYtd;
			newVSalesPerson.SalesLastYear = _salesLastYear;
			return newVSalesPerson;
		}