/// <summary> /// 此课堂能否预约。 /// </summary> /// <param name="arrange"></param> /// <param name="student"></param> /// <returns></returns> protected bool CanBeBooked(PackageArrange arrange, StudentInfo student) { if (student == null || arrange == null || arrange.Capacity <= arrange.PackageBookInfo.Count || IsBooked(student, arrange.CoursePackage)) return false; else return true; }
partial void DeletePackageArrange(PackageArrange instance);
partial void InsertPackageArrange(PackageArrange instance);
partial void UpdatePackageArrange(PackageArrange instance);
private void detach_PackageArrange(PackageArrange entity) { this.SendPropertyChanging(); entity.CoursePackage = null; }