コード例 #1
0
 /// <summary>
 /// Create a new Enrollment object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="enrollment_Section">Initial value of the Enrollment_Section property.</param>
 /// <param name="enrollment_Student">Initial value of the Enrollment_Student property.</param>
 public static Enrollment CreateEnrollment(global::System.Int32 id, global::System.Int32 enrollment_Section, global::System.Int32 enrollment_Student)
 {
     Enrollment enrollment = new Enrollment();
     enrollment.Id = id;
     enrollment.Enrollment_Section = enrollment_Section;
     enrollment.Enrollment_Student = enrollment_Student;
     return enrollment;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Enrollments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEnrollments(Enrollment enrollment)
 {
     base.AddObject("Enrollments", enrollment);
 }