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: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
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