partial void DeleteCourseArrange(CourseArrange instance);
partial void UpdateCourseArrange(CourseArrange instance);
private void detach_CourseArrange(CourseArrange entity) { this.SendPropertyChanging(); entity.CourseInfo = null; }
partial void InsertCourseArrange(CourseArrange instance);
protected bool CanBeBooked(CourseArrange arrange, StudentInfo student) { if (student == null || arrange == null || arrange.Capacity <= arrange.CourseBookInfo.Count || IsBooked(student, arrange.CourseInfo)) return false; else return true; }