/// <summary> /// Deprecated Method for adding a new object to the DimProductCategories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDimProductCategories(DimProductCategory dimProductCategory) { base.AddObject("DimProductCategories", dimProductCategory); }
/// <summary> /// Create a new DimProductCategory object. /// </summary> /// <param name="productCategoryKey">Initial value of the ProductCategoryKey property.</param> /// <param name="englishProductCategoryName">Initial value of the EnglishProductCategoryName property.</param> /// <param name="spanishProductCategoryName">Initial value of the SpanishProductCategoryName property.</param> /// <param name="frenchProductCategoryName">Initial value of the FrenchProductCategoryName property.</param> public static DimProductCategory CreateDimProductCategory(global::System.Int32 productCategoryKey, global::System.String englishProductCategoryName, global::System.String spanishProductCategoryName, global::System.String frenchProductCategoryName) { DimProductCategory dimProductCategory = new DimProductCategory(); dimProductCategory.ProductCategoryKey = productCategoryKey; dimProductCategory.EnglishProductCategoryName = englishProductCategoryName; dimProductCategory.SpanishProductCategoryName = spanishProductCategoryName; dimProductCategory.FrenchProductCategoryName = frenchProductCategoryName; return dimProductCategory; }