DbParameterLogData DbParameterLogData Class

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.

Syntax

Declaration

public class DbParameterLogDataPublic Class DbParameterLogData

Inheritance Hierarchy

  • System.Object
    System.Object
  • DbParameterLogData
    DbParameterLogData

Inherited Members

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

Constructors summary

Initializes a new instance of the DbParameterLogData class.

Properties summary

Gets the type of the parameter.

Gets the direction of the parameter.

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

Gets a value indicating whether the parameter type is nullable.

Gets the name of the parameter.

Gets the precision of the type of the parameter.

Gets the scale of the type of the parameter.

Gets the size of the type of the parameter.

Gets the value of the parameter.

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

    Property 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

    Property 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

    Property 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

    Property 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

    Property 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

    Property 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

    Property 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

    Property 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

    Property Value

    • System.Object
      System.Object

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll