Skip to content

Infrastructure Layer

The Infrastructure Layer includes the implementation for connecting to external services. These are usually implementations of some domain interface, like repositories, which are in turn used by the Application Layer to perform a functionality.

Persistence

One of the most clear cases of the Infrastructure Layer is Persistence.

TDomain layer defines Repository interfaces, which are implemented by the Infrastructure layer depending on the desired storage provider.

The Infrastructure Layer contains component implementing logic for persisting entities. The Suite Framework provides implementations for Entity Framework Core and NHibernate, however, EFCore is the recommended provider to use for new services.