Constructor DbConnectionFactory
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
DbConnectionFactory(Func<IDbConnection>)
Constructs a DbConnectionFactory from a factory function.
protected DbConnectionFactory(Func<IDbConnection> factory)
Parameters
factoryFunc<IDbConnection>The function that creates a new connection each time it is called.
Exceptions
- ArgumentNullException
factoryis null.