Class DapperDataSourceOptions
- Namespace
- Savvyio.Extensions.Dapper
- Assembly
- Savvyio.Extensions.Dapper.dll
Configuration options for IDapperDataSource.
public class DapperDataSourceOptions : IValidatableParameterObject, IParameterObject
- Inheritance
-
DapperDataSourceOptions
- Implements
- Derived
Constructors
DapperDataSourceOptions()
Initializes a new instance of the DapperDataSourceOptions class.
public DapperDataSourceOptions()
Properties
ConnectionFactory
Gets or sets the function delegate that provides the IDbConnection.
public Func<IDbConnection> ConnectionFactory { get; set; }
Property Value
- Func<IDbConnection>
The function delegate that provides the IDbConnection.
Methods
ValidateOptions()
Determines whether the public read-write properties of this instance are in a valid state.
public void ValidateOptions()
Remarks
This method is expected to throw exceptions when one or more conditions fails to be in a valid state.
Exceptions
- InvalidOperationException
ConnectionFactory cannot be null.