/// <summary> /// Deprecated Method for adding a new object to the TaskGroups EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTaskGroups(TaskGroup taskGroup) { base.AddObject("TaskGroups", taskGroup); }
/// <summary> /// Create a new TaskGroup object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="datePosted">Initial value of the DatePosted property.</param> public static TaskGroup CreateTaskGroup(global::System.Int32 id, global::System.String name, global::System.DateTime datePosted) { TaskGroup taskGroup = new TaskGroup(); taskGroup.Id = id; taskGroup.Name = name; taskGroup.DatePosted = datePosted; return taskGroup; }
public void Add(TaskGroup taskGroup) { db.TaskGroups.AddObject(taskGroup); }