Table of Contents

Namespace Savvyio.Extensions.DependencyInjection.DapperExtensions

Assembly: Savvyio.Extensions.DependencyInjection.DapperExtensions.dll

DapperExtensions adds automatic CRUD on top of Dapper. The Savvyio.Extensions.DependencyInjection.DapperExtensions namespace provides AddDapperExtensionsDataStore<T> and AddDapperExtensionsDataStore<T, TMarker> to register the DapperExtensionsDataStore implementation from Savvyio.Extensions.DapperExtensions.

Start with AddDapperExtensionsDataStore<T> to bind a data store interface to its DapperExtensions implementation. Choose this namespace when you want automatic CRUD without writing SQL statements — DapperExtensions infers INSERT/UPDATE/DELETE/SELECT from class mapping conventions. For handwritten SQL, use Savvyio.Extensions.DependencyInjection.Dapper instead. Combine with Savvyio.Extensions.DependencyInjection.Dapper for the shared connection factory.

Availability: .NET 10 and .NET 9

Extension Members

Type Ext Methods
IServiceCollection ⬇️ AddDapperExtensionsDataStore<T>, AddDapperExtensionsDataStore<T, TMarker>

Classes

DapperExtensionsDataStore<T, TMarker>

Provides a default implementation of the IPersistentDataStore<T, TOptions> interface to support multiple implementations that is tailored for Plain Old CLR Objects (POCO) usage by DapperExtensions.

ServiceCollectionExtensions

Extension methods for the IServiceCollection interface.