DbParameterLogData DbParameterLogData Class

Definition

Logging information about the parameters of a System.Data.Common.DbCommand that is being executed.

Instances of this class are typically created by Entity Framework and passed to loggers, it is not designed to be directly constructed in your application code.

public class DbParameterLogData
Public Class DbParameterLogData
Inheritance
System.ObjectSystem.Object
DbParameterLogDataDbParameterLogData

Inherited Members

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Constructors

DbParameterLogData(String, Object, Boolean, ParameterDirection, DbType, Boolean, Int32, Byte, Byte) DbParameterLogData(String, Object, Boolean, ParameterDirection, DbType, Boolean, Int32, Byte, Byte)

Initializes a new instance of the DbParameterLogData class.

public DbParameterLogData(string name, object value, bool hasValue, ParameterDirection direction, DbType dbType, bool nullable, int size, byte precision, byte scale)
Public Sub New(name As String, value As Object, hasValue As Boolean, direction As ParameterDirection, dbType As DbType, nullable As Boolean, size As Integer, precision As Byte, scale As Byte)
Parameters
name
System.String System.String

The name of the parameter.

value
System.Object System.Object

The value of the parameter.

hasValue
System.Boolean System.Boolean

A value indicating whether the parameter has a value (or is assigned null).

direction
System.Data.ParameterDirection System.Data.ParameterDirection

The direction of the parameter.

dbType
System.Data.DbType System.Data.DbType

The type of the parameter.

nullable
System.Boolean System.Boolean

A value indicating whether the parameter type is nullable.

size
System.Int32 System.Int32

The size of the type of the parameter.

precision
System.Byte System.Byte

The precision of the type of the parameter.

scale
System.Byte System.Byte

The scale of the type of the parameter.

Properties

DbType DbType

Gets the type of the parameter.

public virtual DbType DbType { get; set; }
Public Overridable Property DbType As DbType
Value
System.Data.DbType System.Data.DbType

Direction Direction

Gets the direction of the parameter.

public virtual ParameterDirection Direction { get; set; }
Public Overridable Property Direction As ParameterDirection
Value
System.Data.ParameterDirection System.Data.ParameterDirection

HasValue HasValue

Gets a value indicating whether the parameter has a value (or is assigned null).

public virtual bool HasValue { get; set; }
Public Overridable Property HasValue As Boolean
Value
System.Boolean System.Boolean

IsNullable IsNullable

Gets a value indicating whether the parameter type is nullable.

public virtual bool IsNullable { get; }
Public Overridable ReadOnly Property IsNullable As Boolean
Value
System.Boolean System.Boolean

Name Name

Gets the name of the parameter.

public virtual string Name { get; }
Public Overridable ReadOnly Property Name As String
Value
System.String System.String

Precision Precision

Gets the precision of the type of the parameter.

public virtual byte Precision { get; }
Public Overridable ReadOnly Property Precision As Byte
Value
System.Byte System.Byte

Scale Scale

Gets the scale of the type of the parameter.

public virtual byte Scale { get; }
Public Overridable ReadOnly Property Scale As Byte
Value
System.Byte System.Byte

Size Size

Gets the size of the type of the parameter.

public virtual int Size { get; }
Public Overridable ReadOnly Property Size As Integer
Value
System.Int32 System.Int32

Value Value

Gets the value of the parameter.

public virtual object Value { get; }
Public Overridable ReadOnly Property Value As Object
Value
System.Object System.Object