/// <summary> /// Create a new Category object. /// </summary> /// <param name="categoryId">Initial value of the CategoryId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="isMenuCourse">Initial value of the IsMenuCourse property.</param> /// <param name="isKitchenType">Initial value of the IsKitchenType property.</param> /// <param name="isCookingTechnique">Initial value of the IsCookingTechnique property.</param> /// <param name="isTheme">Initial value of the IsTheme property.</param> /// <param name="dateCreated">Initial value of the DateCreated property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="version">Initial value of the Version property.</param> public static Category CreateCategory(global::System.Decimal categoryId, global::System.String name, global::System.Boolean isMenuCourse, global::System.Boolean isKitchenType, global::System.Boolean isCookingTechnique, global::System.Boolean isTheme, global::System.DateTime dateCreated, global::System.String createdBy, global::System.Byte[] version) { Category category = new Category(); category.CategoryId = categoryId; category.Name = name; category.IsMenuCourse = isMenuCourse; category.IsKitchenType = isKitchenType; category.IsCookingTechnique = isCookingTechnique; category.IsTheme = isTheme; category.DateCreated = dateCreated; category.CreatedBy = createdBy; category.Version = version; return category; }
/// <summary> /// Deprecated Method for adding a new object to the Categories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCategories(Category category) { base.AddObject("Categories", category); }