Inheritance: VProductModelCatalogDescriptionBase
		/// <summary>
		/// Deserialize the mock VProductModelCatalogDescription entity from a temporary file.
		/// </summary>
		private void Step_7_DeserializeEntity_Generated()
		{
			string fileName = "temp_VProductModelCatalogDescription.xml";
		
			XmlSerializer mySerializer = new XmlSerializer(typeof(VProductModelCatalogDescription)); 
			System.IO.FileStream myFileStream = new System.IO.FileStream(fileName,  System.IO.FileMode.Open); 
			mock = (VProductModelCatalogDescription) mySerializer.Deserialize(myFileStream);
			myFileStream.Close();
			System.IO.File.Delete(fileName);
			
			System.Console.WriteLine("mock correctly deserialized from a temporary file.");
		}
		///<summary>
		///  Returns a Typed VProductModelCatalogDescription Entity with mock values.
		///</summary>
		static public VProductModelCatalogDescription CreateMockInstance()
		{		
			VProductModelCatalogDescription mock = new VProductModelCatalogDescription();
						
			mock.ProductModelId = TestUtility.Instance.RandomNumber();
			mock.Name = TestUtility.Instance.RandomString(24, false);;
			mock.Summary = TestUtility.Instance.RandomString(2, false);;
			mock.Manufacturer = TestUtility.Instance.RandomString(2, false);;
			mock.Copyright = TestUtility.Instance.RandomString(14, false);;
			mock.ProductUrl = TestUtility.Instance.RandomString(127, false);;
			mock.WarrantyPeriod = TestUtility.Instance.RandomString(127, false);;
			mock.WarrantyDescription = TestUtility.Instance.RandomString(127, false);;
			mock.NoOfYears = TestUtility.Instance.RandomString(127, false);;
			mock.MaintenanceDescription = TestUtility.Instance.RandomString(127, false);;
			mock.Wheel = TestUtility.Instance.RandomString(127, false);;
			mock.Saddle = TestUtility.Instance.RandomString(127, false);;
			mock.Pedal = TestUtility.Instance.RandomString(127, false);;
			mock.BikeFrame = TestUtility.Instance.RandomString(2, false);;
			mock.Crankset = TestUtility.Instance.RandomString(127, false);;
			mock.PictureAngle = TestUtility.Instance.RandomString(127, false);;
			mock.PictureSize = TestUtility.Instance.RandomString(127, false);;
			mock.ProductPhotoId = TestUtility.Instance.RandomString(127, false);;
			mock.Material = TestUtility.Instance.RandomString(127, false);;
			mock.Color = TestUtility.Instance.RandomString(127, false);;
			mock.ProductLine = TestUtility.Instance.RandomString(127, false);;
			mock.Style = TestUtility.Instance.RandomString(127, false);;
			mock.RiderExperience = TestUtility.Instance.RandomString(499, false);;
			mock.Rowguid = Guid.NewGuid();
			mock.ModifiedDate = TestUtility.Instance.RandomDateTime();
		   return (VProductModelCatalogDescription)mock;
		}
		/// <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(VProductModelCatalogDescription entity, string propertyName)
		{
			switch (propertyName)
			{
				case "ProductModelId":
					return entity.ProductModelId;
				case "Name":
					return entity.Name;
				case "Summary":
					return entity.Summary;
				case "Manufacturer":
					return entity.Manufacturer;
				case "Copyright":
					return entity.Copyright;
				case "ProductUrl":
					return entity.ProductUrl;
				case "WarrantyPeriod":
					return entity.WarrantyPeriod;
				case "WarrantyDescription":
					return entity.WarrantyDescription;
				case "NoOfYears":
					return entity.NoOfYears;
				case "MaintenanceDescription":
					return entity.MaintenanceDescription;
				case "Wheel":
					return entity.Wheel;
				case "Saddle":
					return entity.Saddle;
				case "Pedal":
					return entity.Pedal;
				case "BikeFrame":
					return entity.BikeFrame;
				case "Crankset":
					return entity.Crankset;
				case "PictureAngle":
					return entity.PictureAngle;
				case "PictureSize":
					return entity.PictureSize;
				case "ProductPhotoId":
					return entity.ProductPhotoId;
				case "Material":
					return entity.Material;
				case "Color":
					return entity.Color;
				case "ProductLine":
					return entity.ProductLine;
				case "Style":
					return entity.Style;
				case "RiderExperience":
					return entity.RiderExperience;
				case "Rowguid":
					return entity.Rowguid;
				case "ModifiedDate":
					return entity.ModifiedDate;
			}
			return null;
		}
		///<summary>
		/// A simple factory method to create a new <see cref="VProductModelCatalogDescription"/> instance.
		///</summary>
		///<param name="_productModelId"></param>
		///<param name="_name"></param>
		///<param name="_summary"></param>
		///<param name="_manufacturer"></param>
		///<param name="_copyright"></param>
		///<param name="_productUrl"></param>
		///<param name="_warrantyPeriod"></param>
		///<param name="_warrantyDescription"></param>
		///<param name="_noOfYears"></param>
		///<param name="_maintenanceDescription"></param>
		///<param name="_wheel"></param>
		///<param name="_saddle"></param>
		///<param name="_pedal"></param>
		///<param name="_bikeFrame"></param>
		///<param name="_crankset"></param>
		///<param name="_pictureAngle"></param>
		///<param name="_pictureSize"></param>
		///<param name="_productPhotoId"></param>
		///<param name="_material"></param>
		///<param name="_color"></param>
		///<param name="_productLine"></param>
		///<param name="_style"></param>
		///<param name="_riderExperience"></param>
		///<param name="_rowguid"></param>
		///<param name="_modifiedDate"></param>
		public static VProductModelCatalogDescription CreateVProductModelCatalogDescription(System.Int32 _productModelId, System.String _name, System.String _summary, System.String _manufacturer, System.String _copyright, System.String _productUrl, System.String _warrantyPeriod, System.String _warrantyDescription, System.String _noOfYears, System.String _maintenanceDescription, System.String _wheel, System.String _saddle, System.String _pedal, System.String _bikeFrame, System.String _crankset, System.String _pictureAngle, System.String _pictureSize, System.String _productPhotoId, System.String _material, System.String _color, System.String _productLine, System.String _style, System.String _riderExperience, System.Guid _rowguid, System.DateTime _modifiedDate)
		{
			VProductModelCatalogDescription newVProductModelCatalogDescription = new VProductModelCatalogDescription();
			newVProductModelCatalogDescription.ProductModelId = _productModelId;
			newVProductModelCatalogDescription.Name = _name;
			newVProductModelCatalogDescription.Summary = _summary;
			newVProductModelCatalogDescription.Manufacturer = _manufacturer;
			newVProductModelCatalogDescription.Copyright = _copyright;
			newVProductModelCatalogDescription.ProductUrl = _productUrl;
			newVProductModelCatalogDescription.WarrantyPeriod = _warrantyPeriod;
			newVProductModelCatalogDescription.WarrantyDescription = _warrantyDescription;
			newVProductModelCatalogDescription.NoOfYears = _noOfYears;
			newVProductModelCatalogDescription.MaintenanceDescription = _maintenanceDescription;
			newVProductModelCatalogDescription.Wheel = _wheel;
			newVProductModelCatalogDescription.Saddle = _saddle;
			newVProductModelCatalogDescription.Pedal = _pedal;
			newVProductModelCatalogDescription.BikeFrame = _bikeFrame;
			newVProductModelCatalogDescription.Crankset = _crankset;
			newVProductModelCatalogDescription.PictureAngle = _pictureAngle;
			newVProductModelCatalogDescription.PictureSize = _pictureSize;
			newVProductModelCatalogDescription.ProductPhotoId = _productPhotoId;
			newVProductModelCatalogDescription.Material = _material;
			newVProductModelCatalogDescription.Color = _color;
			newVProductModelCatalogDescription.ProductLine = _productLine;
			newVProductModelCatalogDescription.Style = _style;
			newVProductModelCatalogDescription.RiderExperience = _riderExperience;
			newVProductModelCatalogDescription.Rowguid = _rowguid;
			newVProductModelCatalogDescription.ModifiedDate = _modifiedDate;
			return newVProductModelCatalogDescription;
		}
		///<summary>
		///  Returns a Typed VProductModelCatalogDescriptionBase Entity 
		///</summary>
		public virtual VProductModelCatalogDescriptionBase Copy()
		{
			//shallow copy entity
			VProductModelCatalogDescription copy = new VProductModelCatalogDescription();
				copy.ProductModelId = this.ProductModelId;
				copy.Name = this.Name;
				copy.Summary = this.Summary;
				copy.Manufacturer = this.Manufacturer;
				copy.Copyright = this.Copyright;
				copy.ProductUrl = this.ProductUrl;
				copy.WarrantyPeriod = this.WarrantyPeriod;
				copy.WarrantyDescription = this.WarrantyDescription;
				copy.NoOfYears = this.NoOfYears;
				copy.MaintenanceDescription = this.MaintenanceDescription;
				copy.Wheel = this.Wheel;
				copy.Saddle = this.Saddle;
				copy.Pedal = this.Pedal;
				copy.BikeFrame = this.BikeFrame;
				copy.Crankset = this.Crankset;
				copy.PictureAngle = this.PictureAngle;
				copy.PictureSize = this.PictureSize;
				copy.ProductPhotoId = this.ProductPhotoId;
				copy.Material = this.Material;
				copy.Color = this.Color;
				copy.ProductLine = this.ProductLine;
				copy.Style = this.Style;
				copy.RiderExperience = this.RiderExperience;
				copy.Rowguid = this.Rowguid;
				copy.ModifiedDate = this.ModifiedDate;
			copy.AcceptChanges();
			return (VProductModelCatalogDescription)copy;
		}