Nettiers.AdventureWorks.Entities.VIndividualDemographicsBase.CreateVIndividualDemographics C# (CSharp) Method

CreateVIndividualDemographics() public static method

A simple factory method to create a new VIndividualDemographics instance.
public static CreateVIndividualDemographics ( System _customerId, System _totalPurchaseYtd, System _dateFirstPurchase, System _birthDate, System _maritalStatus, System _yearlyIncome, System _gender, System _totalChildren, System _numberChildrenAtHome, System _education, System _occupation, System _homeOwnerFlag, System _numberCarsOwned ) : VIndividualDemographics
_customerId System
_totalPurchaseYtd System
_dateFirstPurchase System
_birthDate System
_maritalStatus System
_yearlyIncome System
_gender System
_totalChildren System
_numberChildrenAtHome System
_education System
_occupation System
_homeOwnerFlag System
_numberCarsOwned System
return VIndividualDemographics
		public static VIndividualDemographics CreateVIndividualDemographics(System.Int32 _customerId, System.Decimal? _totalPurchaseYtd, System.DateTime? _dateFirstPurchase, System.DateTime? _birthDate, System.String _maritalStatus, System.String _yearlyIncome, System.String _gender, System.Int32? _totalChildren, System.Int32? _numberChildrenAtHome, System.String _education, System.String _occupation, System.Boolean? _homeOwnerFlag, System.Int32? _numberCarsOwned)
		{
			VIndividualDemographics newVIndividualDemographics = new VIndividualDemographics();
			newVIndividualDemographics.CustomerId = _customerId;
			newVIndividualDemographics.TotalPurchaseYtd = _totalPurchaseYtd;
			newVIndividualDemographics.DateFirstPurchase = _dateFirstPurchase;
			newVIndividualDemographics.BirthDate = _birthDate;
			newVIndividualDemographics.MaritalStatus = _maritalStatus;
			newVIndividualDemographics.YearlyIncome = _yearlyIncome;
			newVIndividualDemographics.Gender = _gender;
			newVIndividualDemographics.TotalChildren = _totalChildren;
			newVIndividualDemographics.NumberChildrenAtHome = _numberChildrenAtHome;
			newVIndividualDemographics.Education = _education;
			newVIndividualDemographics.Occupation = _occupation;
			newVIndividualDemographics.HomeOwnerFlag = _homeOwnerFlag;
			newVIndividualDemographics.NumberCarsOwned = _numberCarsOwned;
			return newVIndividualDemographics;
		}