Namespace KYS.EFCore.Library
Classes
- AndSpecification<T>
Specification that is satisfied when both of its operands are satisfied.
- DbContextUnitOfWork<TDbContext>
IUnitOfWork implementation that wraps a database transaction of a DbContext.
- Entity<TId>
Base class for domain entities, which are identified by their Id rather than by their values, and which can raise domain events.
- Enumeration
Base class for "smart enums": strongly typed enumerations with an Id and a Name, which can carry behaviour, unlike a C# enum.
- EnumerationComparer
Equality comparer that compares Enumeration values by Id.
- OrSpecification<T>
Specification that is satisfied when either of its operands is satisfied.
- Specification<T>
Base class for the Specification pattern: encapsulates a filter criterion for
T, plus the related entities to include and whether to track the results.
- ValueObject
Base class for value objects: objects without identity that are equal when all their equality components (see GetEqualityComponents()) are equal.
Interfaces
- IAggregateRoot
Marker interface for aggregate roots: the entities through which an aggregate is loaded and persisted. Only aggregate roots can have an IRepository<T>.
- INotification
Marker interface for domain events raised by an Entity<TId>.
- IRepository<T>
Base interface for repositories of an aggregate root.
- IUnitOfWork
Defines an explicit unit of work: a transaction that is started, then either committed or rolled back.
Disposing the unit of work rolls back any transaction that has not been committed.