/// <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="subjId">Initial value of the SubjId property.</param> /// <param name="siteId">Initial value of the SiteId property.</param> /// <param name="contId">Initial value of the ContId property.</param> /// <param name="subCategoryId">Initial value of the SubCategoryId property.</param> public static Subject CreateSubject(global::System.Int32 subjId, global::System.Int32 siteId, global::System.Int32 contId, global::System.Int32 subCategoryId) { Subject subject = new Subject(); subject.SubjId = subjId; subject.SiteId = siteId; subject.ContId = contId; subject.SubCategoryId = subCategoryId; return subject; }