Exemplo n.º 1
0
 //学生选课
 public bool ChooseCourse(String stuname, String course_num)
 {
     DataClassesDataContext da = new DataClassesDataContext();
     Student_Course sc = new Student_Course();
     sc.course = course_num;
     sc.student = stuname;
     da.Student_Course.InsertOnSubmit(sc);
     da.SubmitChanges();
     return true;
 }
Exemplo n.º 2
0
 partial void DeleteStudent_Course(Student_Course instance);
Exemplo n.º 3
0
 partial void UpdateStudent_Course(Student_Course instance);
Exemplo n.º 4
0
 partial void InsertStudent_Course(Student_Course instance);
Exemplo n.º 5
0
		private void detach_Student_Course(Student_Course entity)
		{
			this.SendPropertyChanging();
			entity.Student1 = null;
		}
Exemplo n.º 6
0
		private void attach_Student_Course(Student_Course entity)
		{
			this.SendPropertyChanging();
			entity.Student1 = this;
		}