Exemple #1
0
 /// <summary>
 /// Create a new Subject object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="maxSessionalMarks">Initial value of the MaxSessionalMarks property.</param>
 /// <param name="maxInternalMarks">Initial value of the MaxInternalMarks property.</param>
 /// <param name="maxLabMarks">Initial value of the MaxLabMarks property.</param>
 /// <param name="maxAssignmentsMarks">Initial value of the MaxAssignmentsMarks property.</param>
 public static Subject CreateSubject(global::System.Int32 id, global::System.String name, global::System.Int32 maxSessionalMarks, global::System.Int32 maxInternalMarks, global::System.Int32 maxLabMarks, global::System.Int32 maxAssignmentsMarks)
 {
     Subject subject = new Subject();
     subject.Id = id;
     subject.Name = name;
     subject.MaxSessionalMarks = maxSessionalMarks;
     subject.MaxInternalMarks = maxInternalMarks;
     subject.MaxLabMarks = maxLabMarks;
     subject.MaxAssignmentsMarks = maxAssignmentsMarks;
     return subject;
 }
Exemple #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Subjects1 EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSubjects1(Subject subject)
 {
     base.AddObject("Subjects1", subject);
 }