QueryExtensions
Parent namespace: Backend
Classes
| Type | Description |
|---|---|
ActivityQueryExtensions | The ActivityQueryExtensions class provides an extension method for filtering a queryable collection of Activity entities based on various criteria specified in a GetActivitiesDTO object. This method allows for dynamic filtering of activities based on whether the requester is a board member, the user's group memberships, and specific filters such as including past or future activities, filtering by year, and checking if activities are open for payment. The Filter method centralizes the logic for applying these filters to an IQueryable, ensuring that the relevant activities are returned based on the specified criteria while maintaining appropriate access control based on the user's role within the system. |
EnrollmentQueryExtensions | The EnrollmentQueryExtensions class provides an extension method for filtering a queryable collection of Enrollment entities based on criteria specified in a GetEnrollmentsDTO object. This method allows for dynamic filtering of enrollments based on the member ID specified in the DTO, enabling retrieval of enrollments associated with a particular member. The Filter method centralizes the logic for applying this filter to an IQueryable, ensuring that the relevant enrollments are returned based on the specified criteria while maintaining appropriate access control based on the user's role within the system. |
MemberQueryExtensions | The MemberQueryExtensions class provides extension methods for filtering and applying paging to a queryable collection of Member entities based on various criteria specified in a GetMembersDto object. The Filter method allows for dynamic filtering of members based on search terms, study enrollments, and specific member attributes such as gratie, lid van verdienste, ere lid, begunstiger, suspended, inactive status, and study type. The ApplyPaging method enables pagination of the results based on the page number and page size specified in the DTO. These methods centralize the logic for applying these filters and pagination to an IQueryable, ensuring that the relevant members are returned based on the specified criteria while maintaining appropriate access control based on the user's role within the system. |
StudyEnrollmentQueryExtensions | The StudyEnrollmentQueryExtensions class provides extension methods for filtering and including details in a queryable collection of StudyEnrollment entities based on various criteria specified in a GetStudyEnrollmentsDTO object. The IncludeDetails method allows for including related member and study information in the query results, while the Filter method enables dynamic filtering of study enrollments based on the member ID specified in the DTO. These methods centralize the logic for applying these filters and includes to an IQueryable, ensuring that the relevant study enrollments are returned based on the specified criteria while maintaining appropriate access control based on the user's role within the system. |