Struct CommandEventData
Metadata about a command as it moves through the execution lifecycle. Created by the context's execution axis and passed to the interceptors registered for it.
public readonly record struct CommandEventData : IEquatable<CommandEventData>
- Implements
- Inherited Members
- Extension Methods
Constructors
CommandEventData(IDataContext, string?)
Metadata about a command as it moves through the execution lifecycle. Created by the context's execution axis and passed to the interceptors registered for it.
public CommandEventData(IDataContext DataContext, string? Sql)
Parameters
DataContextIDataContextThe context that owns the command being executed.
SqlstringThe command text, or null when it is not known.
Properties
DataContext
The context that owns the command being executed.
public IDataContext DataContext { get; init; }
Property Value
Sql
The command text, or null when it is not known.
public string? Sql { get; init; }