상속: VStoreWithDemographicsBase
		///<summary>
		/// A simple factory method to create a new <see cref="VStoreWithDemographics"/> instance.
		///</summary>
		///<param name="_customerId"></param>
		///<param name="_name"></param>
		///<param name="_contactType"></param>
		///<param name="_title"></param>
		///<param name="_firstName"></param>
		///<param name="_middleName"></param>
		///<param name="_lastName"></param>
		///<param name="_suffix"></param>
		///<param name="_phone"></param>
		///<param name="_emailAddress"></param>
		///<param name="_emailPromotion"></param>
		///<param name="_addressType"></param>
		///<param name="_addressLine1"></param>
		///<param name="_addressLine2"></param>
		///<param name="_city"></param>
		///<param name="_stateProvinceName"></param>
		///<param name="_postalCode"></param>
		///<param name="_countryRegionName"></param>
		///<param name="_annualSales"></param>
		///<param name="_annualRevenue"></param>
		///<param name="_bankName"></param>
		///<param name="_businessType"></param>
		///<param name="_yearOpened"></param>
		///<param name="_specialty"></param>
		///<param name="_squareFeet"></param>
		///<param name="_brands"></param>
		///<param name="_internet"></param>
		///<param name="_numberEmployees"></param>
		public static VStoreWithDemographics CreateVStoreWithDemographics(System.Int32 _customerId, 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 _addressType, System.String _addressLine1, System.String _addressLine2, System.String _city, System.String _stateProvinceName, System.String _postalCode, System.String _countryRegionName, System.Decimal? _annualSales, System.Decimal? _annualRevenue, System.String _bankName, System.String _businessType, System.Int32? _yearOpened, System.String _specialty, System.Int32? _squareFeet, System.String _brands, System.String _internet, System.Int32? _numberEmployees)
		{
			VStoreWithDemographics newVStoreWithDemographics = new VStoreWithDemographics();
			newVStoreWithDemographics.CustomerId = _customerId;
			newVStoreWithDemographics.Name = _name;
			newVStoreWithDemographics.ContactType = _contactType;
			newVStoreWithDemographics.Title = _title;
			newVStoreWithDemographics.FirstName = _firstName;
			newVStoreWithDemographics.MiddleName = _middleName;
			newVStoreWithDemographics.LastName = _lastName;
			newVStoreWithDemographics.Suffix = _suffix;
			newVStoreWithDemographics.Phone = _phone;
			newVStoreWithDemographics.EmailAddress = _emailAddress;
			newVStoreWithDemographics.EmailPromotion = _emailPromotion;
			newVStoreWithDemographics.AddressType = _addressType;
			newVStoreWithDemographics.AddressLine1 = _addressLine1;
			newVStoreWithDemographics.AddressLine2 = _addressLine2;
			newVStoreWithDemographics.City = _city;
			newVStoreWithDemographics.StateProvinceName = _stateProvinceName;
			newVStoreWithDemographics.PostalCode = _postalCode;
			newVStoreWithDemographics.CountryRegionName = _countryRegionName;
			newVStoreWithDemographics.AnnualSales = _annualSales;
			newVStoreWithDemographics.AnnualRevenue = _annualRevenue;
			newVStoreWithDemographics.BankName = _bankName;
			newVStoreWithDemographics.BusinessType = _businessType;
			newVStoreWithDemographics.YearOpened = _yearOpened;
			newVStoreWithDemographics.Specialty = _specialty;
			newVStoreWithDemographics.SquareFeet = _squareFeet;
			newVStoreWithDemographics.Brands = _brands;
			newVStoreWithDemographics.Internet = _internet;
			newVStoreWithDemographics.NumberEmployees = _numberEmployees;
			return newVStoreWithDemographics;
		}
		/// <summary>
		/// Gets the property value by name.
		/// </summary>
		/// <param name="entity">The entity.</param>
		/// <param name="propertyName">Name of the property.</param>
		/// <returns></returns>
		public static object GetPropertyValueByName(VStoreWithDemographics entity, string propertyName)
		{
			switch (propertyName)
			{
				case "CustomerId":
					return entity.CustomerId;
				case "Name":
					return entity.Name;
				case "ContactType":
					return entity.ContactType;
				case "Title":
					return entity.Title;
				case "FirstName":
					return entity.FirstName;
				case "MiddleName":
					return entity.MiddleName;
				case "LastName":
					return entity.LastName;
				case "Suffix":
					return entity.Suffix;
				case "Phone":
					return entity.Phone;
				case "EmailAddress":
					return entity.EmailAddress;
				case "EmailPromotion":
					return entity.EmailPromotion;
				case "AddressType":
					return entity.AddressType;
				case "AddressLine1":
					return entity.AddressLine1;
				case "AddressLine2":
					return entity.AddressLine2;
				case "City":
					return entity.City;
				case "StateProvinceName":
					return entity.StateProvinceName;
				case "PostalCode":
					return entity.PostalCode;
				case "CountryRegionName":
					return entity.CountryRegionName;
				case "AnnualSales":
					return entity.AnnualSales;
				case "AnnualRevenue":
					return entity.AnnualRevenue;
				case "BankName":
					return entity.BankName;
				case "BusinessType":
					return entity.BusinessType;
				case "YearOpened":
					return entity.YearOpened;
				case "Specialty":
					return entity.Specialty;
				case "SquareFeet":
					return entity.SquareFeet;
				case "Brands":
					return entity.Brands;
				case "Internet":
					return entity.Internet;
				case "NumberEmployees":
					return entity.NumberEmployees;
			}
			return null;
		}
		///<summary>
		///  Returns a Typed VStoreWithDemographicsBase Entity 
		///</summary>
		public virtual VStoreWithDemographicsBase Copy()
		{
			//shallow copy entity
			VStoreWithDemographics copy = new VStoreWithDemographics();
				copy.CustomerId = this.CustomerId;
				copy.Name = this.Name;
				copy.ContactType = this.ContactType;
				copy.Title = this.Title;
				copy.FirstName = this.FirstName;
				copy.MiddleName = this.MiddleName;
				copy.LastName = this.LastName;
				copy.Suffix = this.Suffix;
				copy.Phone = this.Phone;
				copy.EmailAddress = this.EmailAddress;
				copy.EmailPromotion = this.EmailPromotion;
				copy.AddressType = this.AddressType;
				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.AnnualSales = this.AnnualSales;
				copy.AnnualRevenue = this.AnnualRevenue;
				copy.BankName = this.BankName;
				copy.BusinessType = this.BusinessType;
				copy.YearOpened = this.YearOpened;
				copy.Specialty = this.Specialty;
				copy.SquareFeet = this.SquareFeet;
				copy.Brands = this.Brands;
				copy.Internet = this.Internet;
				copy.NumberEmployees = this.NumberEmployees;
			copy.AcceptChanges();
			return (VStoreWithDemographics)copy;
		}
		/// <summary>
		/// Convert a nettiers collection to the ws proxy collection.
		/// </summary>
		public static VStoreWithDemographics Convert(WsProxy.VStoreWithDemographics item)
		{			
			VStoreWithDemographics outItem = new VStoreWithDemographics();			
			outItem.CustomerId = item.CustomerId;
			outItem.Name = item.Name;
			outItem.ContactType = item.ContactType;
			outItem.Title = item.Title;
			outItem.FirstName = item.FirstName;
			outItem.MiddleName = item.MiddleName;
			outItem.LastName = item.LastName;
			outItem.Suffix = item.Suffix;
			outItem.Phone = item.Phone;
			outItem.EmailAddress = item.EmailAddress;
			outItem.EmailPromotion = item.EmailPromotion;
			outItem.AddressType = item.AddressType;
			outItem.AddressLine1 = item.AddressLine1;
			outItem.AddressLine2 = item.AddressLine2;
			outItem.City = item.City;
			outItem.StateProvinceName = item.StateProvinceName;
			outItem.PostalCode = item.PostalCode;
			outItem.CountryRegionName = item.CountryRegionName;
			outItem.AnnualSales = item.AnnualSales;
			outItem.AnnualRevenue = item.AnnualRevenue;
			outItem.BankName = item.BankName;
			outItem.BusinessType = item.BusinessType;
			outItem.YearOpened = item.YearOpened;
			outItem.Specialty = item.Specialty;
			outItem.SquareFeet = item.SquareFeet;
			outItem.Brands = item.Brands;
			outItem.Internet = item.Internet;
			outItem.NumberEmployees = item.NumberEmployees;
							
			outItem.AcceptChanges();			
			return outItem;
		}
		/// <summary>
		/// Deserialize the mock VStoreWithDemographics entity from a temporary file.
		/// </summary>
		private void Step_7_DeserializeEntity_Generated()
		{
			string fileName = "temp_VStoreWithDemographics.xml";
		
			XmlSerializer mySerializer = new XmlSerializer(typeof(VStoreWithDemographics)); 
			System.IO.FileStream myFileStream = new System.IO.FileStream(fileName,  System.IO.FileMode.Open); 
			mock = (VStoreWithDemographics) mySerializer.Deserialize(myFileStream);
			myFileStream.Close();
			System.IO.File.Delete(fileName);
			
			System.Console.WriteLine("mock correctly deserialized from a temporary file.");
		}
		///<summary>
		///  Returns a Typed VStoreWithDemographics Entity with mock values.
		///</summary>
		static public VStoreWithDemographics CreateMockInstance()
		{		
			VStoreWithDemographics mock = new VStoreWithDemographics();
						
			mock.CustomerId = TestUtility.Instance.RandomNumber();
			mock.Name = TestUtility.Instance.RandomString(24, false);;
			mock.ContactType = TestUtility.Instance.RandomString(24, false);;
			mock.Title = TestUtility.Instance.RandomString(8, false);;
			mock.FirstName = TestUtility.Instance.RandomString(24, false);;
			mock.MiddleName = TestUtility.Instance.RandomString(24, false);;
			mock.LastName = TestUtility.Instance.RandomString(24, false);;
			mock.Suffix = TestUtility.Instance.RandomString(10, false);;
			mock.Phone = TestUtility.Instance.RandomString(11, false);;
			mock.EmailAddress = TestUtility.Instance.RandomString(24, false);;
			mock.EmailPromotion = TestUtility.Instance.RandomNumber();
			mock.AddressType = TestUtility.Instance.RandomString(24, false);;
			mock.AddressLine1 = TestUtility.Instance.RandomString(29, false);;
			mock.AddressLine2 = TestUtility.Instance.RandomString(29, false);;
			mock.City = TestUtility.Instance.RandomString(14, false);;
			mock.StateProvinceName = TestUtility.Instance.RandomString(24, false);;
			mock.PostalCode = TestUtility.Instance.RandomString(6, false);;
			mock.CountryRegionName = TestUtility.Instance.RandomString(24, false);;
			mock.AnnualSales = TestUtility.Instance.RandomShort();
			mock.AnnualRevenue = TestUtility.Instance.RandomShort();
			mock.BankName = TestUtility.Instance.RandomString(24, false);;
			mock.BusinessType = TestUtility.Instance.RandomString(5, false);;
			mock.YearOpened = TestUtility.Instance.RandomNumber();
			mock.Specialty = TestUtility.Instance.RandomString(24, false);;
			mock.SquareFeet = TestUtility.Instance.RandomNumber();
			mock.Brands = TestUtility.Instance.RandomString(14, false);;
			mock.Internet = TestUtility.Instance.RandomString(14, false);;
			mock.NumberEmployees = TestUtility.Instance.RandomNumber();
		   return (VStoreWithDemographics)mock;
		}