Table of Contents

Namespace Savvyio.Extensions.EFCore

Assembly: Savvyio.Extensions.EFCore.dll

Use the Savvyio.Extensions.EFCore namespace for the core Entity Framework Core integration types. It provides EfCoreDbContext, EfCoreDataSource, EfCoreDataStore, and EfCoreRepository — the building blocks for infrastructure-layer persistence that connects EF Core to the Savvy I/O data access abstractions in Savvyio.Data.

Start with EfCoreDataSource<TContext> as the base class when you want a typed DbContext factory that implements IEfCoreDataSource. Extend EfCoreDataStore<T, TContext> for general data store operations, or EfCoreRepository<TAggregateRoot, TKey, TContext> for aggregate root–scoped repositories. Register these with Savvyio.Extensions.DependencyInjection.EFCore.

Availability: .NET 10 and .NET 9

Classes

EfCoreDataSource

Provides a default implementation of the IEfCoreDataSource interface to support the actual I/O communication with a source of data using Microsoft Entity Framework Core.

EfCoreDataSourceOptions

Configuration options for IEfCoreDataSource.

EfCoreDataStore<T>

Provides a default implementation of the IPersistentDataStore<T, TOptions> interface to serve as an abstraction layer before the actual I/O communication with a source of data using Microsoft Entity Framework Core.

EfCoreDbContext

Provides a default implementation of the DbContext class to support Savvy I/O extensions of Microsoft Entity Framework Core.

EfCoreQueryOptions<T>

Specifies options that is related to EfCoreDataStore<T>.

EfCoreRepository<TEntity, TKey>

Provides a default implementation of the IPersistentRepository<TEntity, TKey> interface to serve as an abstraction layer before the actual I/O communication with a source of data using Microsoft Entity Framework Core.

Interfaces

IEfCoreDataSource

Defines a generic way to support the actual I/O communication with a source of data - tailored to Microsoft Entity Framework Core.