Table of Contents

Struct CommandEventData

Namespace
NextORM.Core
Assembly
nextorm.core.dll

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

DataContext IDataContext

The context that owns the command being executed.

Sql string

The 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

IDataContext

Sql

The command text, or null when it is not known.

public string? Sql { get; init; }

Property Value

string