Exemplo n.º 1
0
 /// <summary>
 /// Create a new Contest_Student object.
 /// </summary>
 /// <param name="studentID">Initial value of the StudentID property.</param>
 /// <param name="contestID">Initial value of the ContestID property.</param>
 public static Contest_Student CreateContest_Student(global::System.String studentID, global::System.Int32 contestID)
 {
     Contest_Student contest_Student = new Contest_Student();
     contest_Student.StudentID = studentID;
     contest_Student.ContestID = contestID;
     return contest_Student;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Contest_Student EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToContest_Student(Contest_Student contest_Student)
 {
     base.AddObject("Contest_Student", contest_Student);
 }
Exemplo n.º 3
0
 public void ThemSinhVienThi(string mssv, int contestID)
 {
     try
     {
         BeginChange();
         Contest_Student item = new Contest_Student();
         item.ContestID = contestID;
         item.StudentID = mssv;
         db.Contest_Student.AddObject(item);
         CommitChange();
     }
     catch (Exception ex)
     {
         RollbackChange();
         throw ex;
     }
 }