private SalesByCategory Map(SalesByCategoryRow row, string[] fieldNames)
        {
            var hasFn = fieldNames != null && fieldNames.Any();
            var item  = new SalesByCategory();

            if (!hasFn || fieldNames.Contains("CategoryId", StringComparer.OrdinalIgnoreCase))
            {
                item.CategoryId = row.CategoryId;
            }
            if (!hasFn || fieldNames.Contains("CategoryName", StringComparer.OrdinalIgnoreCase))
            {
                item.CategoryName = row.CategoryName;
            }
            if (!hasFn || fieldNames.Contains("ProductName", StringComparer.OrdinalIgnoreCase))
            {
                item.ProductName = row.ProductName;
            }
            if (!hasFn || fieldNames.Contains("ProductSales", StringComparer.OrdinalIgnoreCase))
            {
                item.ProductSales = row.ProductSales;
            }


            return(item);
        }
 public void RemoveSalesByCategoryRow(SalesByCategoryRow row) {
     this.Rows.Remove(row);
 }
 public SalesByCategoryRowChangeEvent(SalesByCategoryRow row, System.Data.DataRowAction action) {
     this.eventRow = row;
     this.eventAction = action;
 }
 public void AddSalesByCategoryRow(SalesByCategoryRow row) {
     this.Rows.Add(row);
 }