AdoNetAppenderParameter ClassApache log4net™ SDK Documentation
Parameter type used by the AdoNetAppender.
Inheritance Hierarchy

SystemObject
  log4net.AppenderAdoNetAppenderParameter

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax

public class AdoNetAppenderParameter

The AdoNetAppenderParameter type exposes the following members.

Constructors

  NameDescription
Public methodAdoNetAppenderParameter
Initializes a new instance of the AdoNetAppenderParameter class.
Top
Properties

  NameDescription
Public propertyDbType
Gets or sets the database type for this parameter.
Public propertyLayout
Gets or sets the IRawLayout to use to render the logging event into an object for this parameter.
Public propertyParameterName
Gets or sets the name of this parameter.
Public propertyPrecision
Gets or sets the precision for this parameter.
Public propertyScale
Gets or sets the scale for this parameter.
Public propertySize
Gets or sets the size for this parameter.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFormatValue
Renders the logging event and set the parameter value in the command.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPrepare
Prepare the specified database command object.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Remarks

This class provides the basic database parameter properties as defined by the IDbDataParameter interface.

This type can be subclassed to provide database specific functionality. The two methods that are called externally are Prepare(IDbCommand) and FormatValue(IDbCommand, LoggingEvent).

See Also

Reference