| DatabaseTargetCommandType Property |
Gets or sets the type of the SQL command to be run on each log level.
Namespace:
NLog.Targets
Assembly:
NLog.Database (in NLog.Database.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public CommandType CommandType { get; set; }
Public Property CommandType As CommandType
Get
Set
Dim instance As DatabaseTarget
Dim value As CommandType
value = instance.CommandType
instance.CommandType = value
member CommandType : CommandType with get, set
Property Value
Type:
CommandTypeRemarks
This specifies how the command text is interpreted, as "Text" (default) or as "StoredProcedure".
When using the value StoredProcedure, the commandText-property would
normally be the name of the stored procedure. TableDirect method is not supported in this context.
See Also