/// <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; }
private void detach_CoursePackage(CoursePackage entity) { this.SendPropertyChanging(); entity.TeacherInfo = null; }
partial void DeleteCoursePackage(CoursePackage instance);
partial void UpdateCoursePackage(CoursePackage instance);
partial void InsertCoursePackage(CoursePackage instance);
private void attach_CoursePackage(CoursePackage entity) { this.SendPropertyChanging(); entity.ExperimentInfo = this; }