/// <summary> /// Deprecated Method for adding a new object to the JobCategories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToJobCategories(JobCategory jobCategory) { base.AddObject("JobCategories", jobCategory); }
/// <summary> /// Create a new JobCategory object. /// </summary> /// <param name="categoryID">Initial value of the CategoryID property.</param> /// <param name="categoryName">Initial value of the CategoryName property.</param> public static JobCategory CreateJobCategory(global::System.Int32 categoryID, global::System.String categoryName) { JobCategory jobCategory = new JobCategory(); jobCategory.CategoryID = categoryID; jobCategory.CategoryName = categoryName; return jobCategory; }