Click or drag to resize

DatabaseTarget Constructor (FuncIDbConnection)

Initializes a new instance of the DatabaseTarget class.

Namespace:  NLog.Targets
Assembly:  NLog.Database (in NLog.Database.dll) Version: 6.0.0+be83582280f7a841b0d3c6ae75b4f95aaf07e914
Syntax
public DatabaseTarget(
	Func<IDbConnection> dbConnectionFactory
)

Parameters

dbConnectionFactory
Type: SystemFuncIDbConnection
A factory function that creates instances of IDbConnection for connecting to the database (AOT compatible)
See Also