| DatabaseTargetDBProvider Property |
Gets or sets the name of the database provider.
Namespace:
NLog.Targets
Assembly:
NLog.Database (in NLog.Database.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public string DBProvider { get; set; }
Public Property DBProvider As String
Get
Set
Dim instance As DatabaseTarget
Dim value As String
value = instance.DBProvider
instance.DBProvider = value
member DBProvider : string with get, set
Property Value
Type:
StringRemarks
The parameter name should be a provider invariant name as registered in machine.config or app.config. Common values are:
(Note that provider invariant names are not supported on .NET Compact Framework).
Alternatively the parameter value can be be a fully qualified name of the provider
connection type (class implementing IDbConnection) or one of the following tokens:
- sqlserver, mssql, microsoft or msde - SQL Server Data Provider
- oledb - OLEDB Data Provider
- odbc - ODBC Data Provider
See Also