/// <summary> /// Deprecated Method for adding a new object to the Assignments EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAssignments(Assignment assignment) { base.AddObject("Assignments", assignment); }
/// <summary> /// Create a new Assignment object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="topic">Initial value of the Topic property.</param> public static Assignment CreateAssignment(global::System.Int32 id, global::System.String topic) { Assignment assignment = new Assignment(); assignment.Id = id; assignment.Topic = topic; return assignment; }