 | DatabaseTarget Constructor (FuncIDbConnection) |
Namespace:
NLog.Targets
Assembly:
NLog.Database (in NLog.Database.dll) Version: 6.0.0+be83582280f7a841b0d3c6ae75b4f95aaf07e914
Syntaxpublic DatabaseTarget(
Func<IDbConnection> dbConnectionFactory
)
Public Sub New (
dbConnectionFactory As Func(Of IDbConnection)
)
Dim dbConnectionFactory As Func(Of IDbConnection)
Dim instance As New DatabaseTarget(dbConnectionFactory)
new :
dbConnectionFactory : Func<IDbConnection> -> DatabaseTarget
Parameters
- dbConnectionFactory
- Type: SystemFuncIDbConnection
A factory function that creates instances of IDbConnection for connecting to the database (AOT compatible)
See Also