예제 #1
0
        /// <summary>
        /// Create a new StudentsEnrollment object.
        /// </summary>
        /// <param name="enrollmentId">Initial value of the EnrollmentId property.</param>
        /// <param name="studentId">Initial value of the StudentId property.</param>
        /// <param name="courseId">Initial value of the CourseId property.</param>
        public static StudentsEnrollment CreateStudentsEnrollment(global::System.Int32 enrollmentId, global::System.Int32 studentId, global::System.Int32 courseId)
        {
            StudentsEnrollment studentsEnrollment = new StudentsEnrollment();

            studentsEnrollment.EnrollmentId = enrollmentId;
            studentsEnrollment.StudentId    = studentId;
            studentsEnrollment.CourseId     = courseId;
            return(studentsEnrollment);
        }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the StudentsEnrollments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStudentsEnrollments(StudentsEnrollment studentsEnrollment)
 {
     base.AddObject("StudentsEnrollments", studentsEnrollment);
 }