DbCommandLogData DbCommandLogData Class

Definition

Warning

This API is now obsolete.

Logging information about 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.

[Obsolete("This class is obsolete. It will be removed in a future release.")]
public class DbCommandLogData : IEnumerable<KeyValuePair<string, object>>, IEnumerable
<Obsolete("This class is obsolete. It will be removed in a future release.")>
Public Class DbCommandLogData
    Implements IEnumerable(Of KeyValuePair(Of String, Object)), IEnumerable
Inheritance
System.ObjectSystem.Object
DbCommandLogDataDbCommandLogData
Attributes
System.ObsoleteAttribute
Implements
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>>System.Collections.Generic.IEnumerable(Of System.Collections.Generic.KeyValuePair(Of System.String, System.Object)) System.Collections.IEnumerableSystem.Collections.IEnumerable

Constructors

DbCommandLogData(String, CommandType, Int32, IReadOnlyList<DbParameterLogData>, Nullable<Int64>) DbCommandLogData(String, CommandType, Int32, IReadOnlyList(Of DbParameterLogData), Nullable(Of Int64))

Initializes a new instance of the DbParameterLogData class.

Properties

CommandText CommandText

Gets the command text being executed.

CommandTimeout CommandTimeout

Gets the timeout configured for the command.

CommandType CommandType

Gets the type of command being executed.

ElapsedMilliseconds ElapsedMilliseconds

Gets how many milliseconds the command took to execute (if it has completed).

Parameters Parameters

Gets the parameters for the command.

Methods

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

Explicit Interface Implementations

IEnumerable.GetEnumerator() System.Collections.IEnumerable.GetEnumerator()

Extension Methods

Microsoft.EntityFrameworkCore.Internal.EnumerableExtensions.OrderByOrdinal<System.Collections.Generic.KeyValuePair<System.String, System.Object>>(System.Func<System.Collections.Generic.KeyValuePair<System.String, System.Object>, System.String>) Microsoft.EntityFrameworkCore.Internal.EnumerableExtensions.OrderByOrdinal(Of System.Collections.Generic.KeyValuePair(Of System.String, System.Object))(System.Func(Of System.Collections.Generic.KeyValuePair(Of System.String, System.Object), System.String))
Microsoft.EntityFrameworkCore.Internal.EnumerableExtensions.StructuralSequenceEqual<System.Collections.Generic.KeyValuePair<System.String, System.Object>>(System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>>) Microsoft.EntityFrameworkCore.Internal.EnumerableExtensions.StructuralSequenceEqual(Of System.Collections.Generic.KeyValuePair(Of System.String, System.Object))(System.Collections.Generic.IEnumerable(Of System.Collections.Generic.KeyValuePair(Of System.String, System.Object)))
Microsoft.EntityFrameworkCore.Internal.EnumerableExtensions.StartsWith<System.Collections.Generic.KeyValuePair<System.String, System.Object>>(System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>>) Microsoft.EntityFrameworkCore.Internal.EnumerableExtensions.StartsWith(Of System.Collections.Generic.KeyValuePair(Of System.String, System.Object))(System.Collections.Generic.IEnumerable(Of System.Collections.Generic.KeyValuePair(Of System.String, System.Object)))
Microsoft.EntityFrameworkCore.Specification.Tests.Extensions.NullChecked<System.Collections.Generic.KeyValuePair<System.String, System.Object>>() Microsoft.EntityFrameworkCore.Specification.Tests.Extensions.NullChecked(Of System.Collections.Generic.KeyValuePair(Of System.String, System.Object))()
Microsoft.EntityFrameworkCore.Specification.Tests.Extensions.ForEach<System.Collections.Generic.KeyValuePair<System.String, System.Object>>(System.Action<System.Collections.Generic.KeyValuePair<System.String, System.Object>>) Microsoft.EntityFrameworkCore.Specification.Tests.Extensions.ForEach(Of System.Collections.Generic.KeyValuePair(Of System.String, System.Object))(System.Action(Of System.Collections.Generic.KeyValuePair(Of System.String, System.Object)))