csinn / CSInn

C# Inn community website.
MIT License
26 stars 9 forks source link

Feature/lesson material search #48

Open Almantask opened 5 years ago

Almantask commented 5 years ago

Specification pattern for filtering lessons (or other entities). This involves composite pattern to build expressions for specification, visitor pattern for applying domain specification to EF format (expression). Filters support And, Or, Not. Specification works for in-memory stuff (IsSatisfiedByItem) and for EF.

Usability: in lesson search page we will have something like discord: a) on every filter applied, a specification will be created. Later specifications will be joined and sent as one to repo b) a string query will be created, which will be passed to another specification, which will act as string query parser, which will be sent to repo

Developeneur commented 4 years ago

@Almantask Once you have updated the PR with the most recent code and fix the Codacy PR Quality issues, I will take another look at this PR. If this PR is inactive for 2 more weeks I will close.