Table of Contents

Constructor DbConnectionFactory

Namespace
Open.Database.Extensions
Assembly
Open.Database.Extensions.Core.dll

DbConnectionFactory(Func<TConnection>)

Constructs a DbConnectionFactory<TConnection> from a factory function.

public DbConnectionFactory(Func<TConnection> factory)

Parameters

factory Func<TConnection>

The function that creates a new connection each time it is called.

Exceptions

ArgumentNullException

factory is null.