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