/// <summary> /// Deprecated Method for adding a new object to the SubCategories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSubCategories(SubCategory subCategory) { base.AddObject("SubCategories", subCategory); }
/// <summary> /// Create a new SubCategory object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="categoryID">Initial value of the CategoryID property.</param> /// <param name="subCategoryName">Initial value of the SubCategoryName property.</param> public static SubCategory CreateSubCategory(global::System.Int32 id, global::System.Int32 categoryID, global::System.String subCategoryName) { SubCategory subCategory = new SubCategory(); subCategory.ID = id; subCategory.CategoryID = categoryID; subCategory.SubCategoryName = subCategoryName; return subCategory; }