Namespace Magicalizer.Domain.Services.Abstractions
Classes
- ModelAlreadyExistsException
Exception that is thrown if a model with the same primary key already exists. The API returns 409 Conflict for it.
- ModelInUseException
Exception that is thrown if a model can't be deleted, as the database restricts it (e.g. other models reference it). The API returns 409 Conflict for it.
- ModelNotFoundException
Exception that is thrown if a model to edit or delete doesn't exist (or isn't available through the query prefilters). The API returns 404 Not Found for it.
Interfaces
- IInclusion<TModel>
Inclusion of related models into a query.
- IQueryPrefilter<TEntity, TFilter>
Prefilter of entity queries. It applies initial restrictions (e.g. security rules or mandatory conditions) before the filter.
- IService<TModel, TFilter>
Service of models: gets them with filtering, sorting, paging and inclusions, creates and edits them.
- IService<TKey, TModel, TFilter>
Service of models with a primary key of one property.
- IService<TKey1, TKey2, TModel, TFilter>
Service of models with a composite primary key of two properties.
- IService<TKey1, TKey2, TKey3, TModel, TFilter>
Service of models with a composite primary key of three properties.
- ISorting<TModel>
Sorting of a query by a property.