Inheritance: VSalesPersonSalesByFiscalYearsBase
        /// <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(VSalesPersonSalesByFiscalYears entity, string propertyName)
        {
            switch (propertyName)
            {
            case "SalesPersonId":
                return(entity.SalesPersonId);

            case "FullName":
                return(entity.FullName);

            case "Title":
                return(entity.Title);

            case "SalesTerritory":
                return(entity.SalesTerritory);

            case "SafeName2002":
                return(entity.SafeName2002);

            case "SafeName2003":
                return(entity.SafeName2003);

            case "SafeName2004":
                return(entity.SafeName2004);
            }
            return(null);
        }
        ///<summary>
        /// A simple factory method to create a new <see cref="VSalesPersonSalesByFiscalYears"/> instance.
        ///</summary>
        ///<param name="_salesPersonId"></param>
        ///<param name="_fullName"></param>
        ///<param name="_title"></param>
        ///<param name="_salesTerritory"></param>
        ///<param name="_safeName2002"></param>
        ///<param name="_safeName2003"></param>
        ///<param name="_safeName2004"></param>
        public static VSalesPersonSalesByFiscalYears CreateVSalesPersonSalesByFiscalYears(System.Int32?_salesPersonId, System.String _fullName, System.String _title, System.String _salesTerritory, System.Decimal?_safeName2002, System.Decimal?_safeName2003, System.Decimal?_safeName2004)
        {
            VSalesPersonSalesByFiscalYears newVSalesPersonSalesByFiscalYears = new VSalesPersonSalesByFiscalYears();

            newVSalesPersonSalesByFiscalYears.SalesPersonId  = _salesPersonId;
            newVSalesPersonSalesByFiscalYears.FullName       = _fullName;
            newVSalesPersonSalesByFiscalYears.Title          = _title;
            newVSalesPersonSalesByFiscalYears.SalesTerritory = _salesTerritory;
            newVSalesPersonSalesByFiscalYears.SafeName2002   = _safeName2002;
            newVSalesPersonSalesByFiscalYears.SafeName2003   = _safeName2003;
            newVSalesPersonSalesByFiscalYears.SafeName2004   = _safeName2004;
            return(newVSalesPersonSalesByFiscalYears);
        }
        ///<summary>
        ///  Returns a Typed VSalesPersonSalesByFiscalYearsBase Entity
        ///</summary>
        public virtual VSalesPersonSalesByFiscalYearsBase Copy()
        {
            //shallow copy entity
            VSalesPersonSalesByFiscalYears copy = new VSalesPersonSalesByFiscalYears();

            copy.SalesPersonId  = this.SalesPersonId;
            copy.FullName       = this.FullName;
            copy.Title          = this.Title;
            copy.SalesTerritory = this.SalesTerritory;
            copy.SafeName2002   = this.SafeName2002;
            copy.SafeName2003   = this.SafeName2003;
            copy.SafeName2004   = this.SafeName2004;
            copy.AcceptChanges();
            return((VSalesPersonSalesByFiscalYears)copy);
        }
		/// <summary>
		/// Convert a nettiers collection to the ws proxy collection.
		/// </summary>
		public static VSalesPersonSalesByFiscalYears Convert(WsProxy.VSalesPersonSalesByFiscalYears item)
		{			
			VSalesPersonSalesByFiscalYears outItem = new VSalesPersonSalesByFiscalYears();			
			outItem.SalesPersonId = item.SalesPersonId;
			outItem.FullName = item.FullName;
			outItem.Title = item.Title;
			outItem.SalesTerritory = item.SalesTerritory;
			outItem.SafeName2002 = item.SafeName2002;
			outItem.SafeName2003 = item.SafeName2003;
			outItem.SafeName2004 = item.SafeName2004;
							
			outItem.AcceptChanges();			
			return outItem;
		}
		/// <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(VSalesPersonSalesByFiscalYears entity, string propertyName)
		{
			switch (propertyName)
			{
				case "SalesPersonId":
					return entity.SalesPersonId;
				case "FullName":
					return entity.FullName;
				case "Title":
					return entity.Title;
				case "SalesTerritory":
					return entity.SalesTerritory;
				case "SafeName2002":
					return entity.SafeName2002;
				case "SafeName2003":
					return entity.SafeName2003;
				case "SafeName2004":
					return entity.SafeName2004;
			}
			return null;
		}
		///<summary>
		///  Returns a Typed VSalesPersonSalesByFiscalYearsBase Entity 
		///</summary>
		public virtual VSalesPersonSalesByFiscalYearsBase Copy()
		{
			//shallow copy entity
			VSalesPersonSalesByFiscalYears copy = new VSalesPersonSalesByFiscalYears();
				copy.SalesPersonId = this.SalesPersonId;
				copy.FullName = this.FullName;
				copy.Title = this.Title;
				copy.SalesTerritory = this.SalesTerritory;
				copy.SafeName2002 = this.SafeName2002;
				copy.SafeName2003 = this.SafeName2003;
				copy.SafeName2004 = this.SafeName2004;
			copy.AcceptChanges();
			return (VSalesPersonSalesByFiscalYears)copy;
		}
		///<summary>
		/// A simple factory method to create a new <see cref="VSalesPersonSalesByFiscalYears"/> instance.
		///</summary>
		///<param name="_salesPersonId"></param>
		///<param name="_fullName"></param>
		///<param name="_title"></param>
		///<param name="_salesTerritory"></param>
		///<param name="_safeName2002"></param>
		///<param name="_safeName2003"></param>
		///<param name="_safeName2004"></param>
		public static VSalesPersonSalesByFiscalYears CreateVSalesPersonSalesByFiscalYears(System.Int32? _salesPersonId, System.String _fullName, System.String _title, System.String _salesTerritory, System.Decimal? _safeName2002, System.Decimal? _safeName2003, System.Decimal? _safeName2004)
		{
			VSalesPersonSalesByFiscalYears newVSalesPersonSalesByFiscalYears = new VSalesPersonSalesByFiscalYears();
			newVSalesPersonSalesByFiscalYears.SalesPersonId = _salesPersonId;
			newVSalesPersonSalesByFiscalYears.FullName = _fullName;
			newVSalesPersonSalesByFiscalYears.Title = _title;
			newVSalesPersonSalesByFiscalYears.SalesTerritory = _salesTerritory;
			newVSalesPersonSalesByFiscalYears.SafeName2002 = _safeName2002;
			newVSalesPersonSalesByFiscalYears.SafeName2003 = _safeName2003;
			newVSalesPersonSalesByFiscalYears.SafeName2004 = _safeName2004;
			return newVSalesPersonSalesByFiscalYears;
		}