![]() | DatabaseTarget Properties |
The DatabaseTarget type exposes the following members.
Name | Description | |
---|---|---|
![]() | CommandProperties |
Gets the collection of properties. Each item contains a mapping
between NLog layout and a property on the DbCommand instance
|
![]() | CommandText |
Gets or sets the text of the SQL command to be run on each log level.
|
![]() | CommandType |
Gets or sets the type of the SQL command to be run on each log level.
|
![]() | ConnectionProperties |
Gets the collection of properties. Each item contains a mapping
between NLog layout and a property on the DbConnection instance
|
![]() | ConnectionString |
Gets or sets the connection string. When provided, it overrides the values
specified in DBHost, DBUserName, DBPassword, DBDatabase.
|
![]() | ConnectionStringName |
Gets or sets the name of the connection string (as specified in <connectionStrings> configuration section.
|
![]() | DBDatabase |
Gets or sets the database name. If the ConnectionString is not provided
this value will be used to construct the "Database=" part of the
connection string.
|
![]() | DBHost |
Gets or sets the database host name. If the ConnectionString is not provided
this value will be used to construct the "Server=" part of the
connection string.
|
![]() | DBPassword |
Gets or sets the database password. If the ConnectionString is not provided
this value will be used to construct the "Password=" part of the
connection string.
|
![]() | DBProvider |
Gets or sets the name of the database provider.
|
![]() | DBUserName |
Gets or sets the database user name. If the ConnectionString is not provided
this value will be used to construct the "User ID=" part of the
connection string.
|
![]() | InstallConnectionString |
Gets or sets the connection string using for installation and uninstallation. If not provided, regular ConnectionString is being used.
|
![]() | InstallDdlCommands |
Gets the installation DDL commands.
|
![]() | IsInitialized |
Gets a value indicating whether the target has been initialized.
(Inherited from Target.) |
![]() | IsolationLevel |
Configures isolated transaction batch writing. If supported by the database, then it will improve insert performance.
|
![]() | KeepConnection |
Gets or sets a value indicating whether to keep the
database connection open between the log events.
|
![]() | LoggingConfiguration |
Gets the logging configuration this target is part of.
(Inherited from Target.) |
![]() | Name |
Gets or sets the name of the target.
(Inherited from Target.) |
![]() | Parameters |
Gets the collection of parameters. Each item contains a mapping
between NLog layout and a database named or positional parameter.
|
![]() | SyncRoot |
Gets the object which can be used to synchronize asynchronous operations that must rely on the .
(Inherited from Target.) |
![]() | UninstallDdlCommands |
Gets the uninstallation DDL commands.
|