/// <summary> /// Deprecated Method for adding a new object to the Subjects EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSubjects(Subject subject) { base.AddObject("Subjects", subject); }
/// <summary> /// Create a new Subject object. /// </summary> /// <param name="subjectID">Initial value of the SubjectID property.</param> /// <param name="slug">Initial value of the Slug property.</param> public static Subject CreateSubject(global::System.Int32 subjectID, global::System.String slug) { Subject subject = new Subject(); subject.SubjectID = subjectID; subject.Slug = slug; return subject; }