Namespace Savvyio.Extensions.Dapper
Use the Savvyio.Extensions.Dapper namespace to access data using Dapper — a lightweight micro-ORM that executes raw SQL and maps results to your domain objects. It provides DapperDataSource as the connection factory and DapperDataStore as the base class for Dapper-backed read and write data stores.
Start with DapperDataSource<TContext> to wrap a database connection factory that implements IDapperDataSource. Extend DapperDataStore<T, TContext> to write your repository logic using Dapper's Execute, Query, and QueryAsync methods. Configure query options through DapperQueryOptions. Register with Savvyio.Extensions.DependencyInjection.Dapper.
Availability: .NET 10 and .NET 9
Classes
DapperDataSource
Provides a default implementation of the IDapperDataSource interface to support the actual I/O communication with a source of data using Dapper.
DapperDataSourceOptions
Configuration options for IDapperDataSource.
DapperDataStore<T, TOptions>
Represents the base class from which all implementations of DapperDataStore<T, TOptions> should derive. This is an abstract class to serve as an abstraction layer before the actual I/O communication with a source of data using Dapper.
DapperQueryOptions
Specifies options that is related to DapperDataStore<T, TOptions>.
Interfaces
IDapperDataSource
Defines a generic way to support the actual I/O communication with a source of data - tailored to Dapper.