Skip to content

Dynamic specifications #15

@PetrovskiAlex

Description

@PetrovskiAlex

We would like to build a dynamic specification instead of creating a specific one.

Now we have this: CompanyNameSpecification, CompanyCountrySpecification, CompanyDeletedSpecification, and so on.
It would be better to have this: LikeSpecification(c => c.Name, "name"), DeletedSpecification();

Also, we are going to have fluent API to build a filter, something like that:

Sp
.Default()
.Like(c => c.Name, "x")
.Like(c => c.Country, "y")
.Equal(c => c.Id, "guid")
.NotDeleted()
.Spec(Sp.CustomSpec())

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions