/// <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(CategorySalesFor1997 entity, string propertyName)
 {
     switch (propertyName)
     {
         case "CategoryName":
             return entity.CategoryName;
         case "CategorySales":
             return entity.CategorySales;
     }
     return null;
 }
 ///<summary>
 ///  Returns a Typed CategorySalesFor1997Base Entity 
 ///</summary>
 public virtual CategorySalesFor1997Base Copy()
 {
     //shallow copy entity
     CategorySalesFor1997 copy = new CategorySalesFor1997();
         copy.CategoryName = this.CategoryName;
         copy.CategorySales = this.CategorySales;
     copy.AcceptChanges();
     return (CategorySalesFor1997)copy;
 }
 ///<summary>
 /// A simple factory method to create a new <see cref="CategorySalesFor1997"/> instance.
 ///</summary>
 ///<param name="_categoryName"></param>
 ///<param name="_categorySales"></param>
 public static CategorySalesFor1997 CreateCategorySalesFor1997(System.String _categoryName, System.Decimal? _categorySales)
 {
     CategorySalesFor1997 newCategorySalesFor1997 = new CategorySalesFor1997();
     newCategorySalesFor1997.CategoryName = _categoryName;
     newCategorySalesFor1997.CategorySales = _categorySales;
     return newCategorySalesFor1997;
 }