Beispiel #1
0
 /// <summary>
 /// 是否此实验已经预约过。
 /// </summary>
 /// <param name="student"></param>
 /// <param name="package"></param>
 /// <returns></returns>
 protected bool IsBooked(StudentInfo student, CoursePackage package)
 {
     PackageBookInfo info = LabDB.PackageBookInfo.FirstOrDefault(d => d.StudentInfo == student && d.PackageArrange.CoursePackage == package);
     if (info != null)
         return true;
     else return false;
 }
Beispiel #2
0
		private void detach_CoursePackage(CoursePackage entity)
		{
			this.SendPropertyChanging();
			entity.TeacherInfo = null;
		}
Beispiel #3
0
 partial void DeleteCoursePackage(CoursePackage instance);
Beispiel #4
0
 partial void UpdateCoursePackage(CoursePackage instance);
Beispiel #5
0
 partial void InsertCoursePackage(CoursePackage instance);
Beispiel #6
0
		private void attach_CoursePackage(CoursePackage entity)
		{
			this.SendPropertyChanging();
			entity.ExperimentInfo = this;
		}