Nettiers.AdventureWorks.Entities.VVendorBase.CreateVVendor C# (CSharp) Method

CreateVVendor() public static method

A simple factory method to create a new VVendor instance.
public static CreateVVendor ( System _vendorId, System _name, System _contactType, System _title, System _firstName, System _middleName, System _lastName, System _suffix, System _phone, System _emailAddress, System _emailPromotion, System _addressLine1, System _addressLine2, System _city, System _stateProvinceName, System _postalCode, System _countryRegionName ) : VVendor
_vendorId System
_name System
_contactType System
_title System
_firstName System
_middleName System
_lastName System
_suffix System
_phone System
_emailAddress System
_emailPromotion System
_addressLine1 System
_addressLine2 System
_city System
_stateProvinceName System
_postalCode System
_countryRegionName System
return VVendor
		public static VVendor CreateVVendor(System.Int32 _vendorId, System.String _name, System.String _contactType, System.String _title, System.String _firstName, System.String _middleName, System.String _lastName, System.String _suffix, 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)
		{
			VVendor newVVendor = new VVendor();
			newVVendor.VendorId = _vendorId;
			newVVendor.Name = _name;
			newVVendor.ContactType = _contactType;
			newVVendor.Title = _title;
			newVVendor.FirstName = _firstName;
			newVVendor.MiddleName = _middleName;
			newVVendor.LastName = _lastName;
			newVVendor.Suffix = _suffix;
			newVVendor.Phone = _phone;
			newVVendor.EmailAddress = _emailAddress;
			newVVendor.EmailPromotion = _emailPromotion;
			newVVendor.AddressLine1 = _addressLine1;
			newVVendor.AddressLine2 = _addressLine2;
			newVVendor.City = _city;
			newVVendor.StateProvinceName = _stateProvinceName;
			newVVendor.PostalCode = _postalCode;
			newVVendor.CountryRegionName = _countryRegionName;
			return newVVendor;
		}