Click or drag to resize

DatabaseTargetDBProvider Property

Gets or sets the name of the database provider.

Namespace:  NLog.Targets
Assembly:  NLog.Database (in NLog.Database.dll) Version: 6.0.0+be83582280f7a841b0d3c6ae75b4f95aaf07e914
Syntax
public string DBProvider { get; set; }

Property Value

Type: String
Remarks

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