Class BatchEventData
- Namespace
- Microsoft.EntityFrameworkCore.Diagnostics
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
The DiagnosticSource event payload for RelationalEventId batch events.
public class BatchEventData : EventData
- Inheritance
-
BatchEventData
- Derived
Remarks
See Logging, events, and diagnostics for more information and examples.
Constructors
BatchEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, IEnumerable<IUpdateEntry>, int)
Constructs the event payload.
public BatchEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, IEnumerable<IUpdateEntry> entries, int commandCount)
Parameters
eventDefinition
EventDefinitionBaseThe event definition.
messageGenerator
Func<EventDefinitionBase, EventData, string>A delegate that generates a log message for this event.
entries
IEnumerable<IUpdateEntry>The entries being updated.
commandCount
intThe command count.
Properties
CommandCount
The command count.
public virtual int CommandCount { get; }
Property Value
Entries
The entries being updated.
public virtual IEnumerable<IUpdateEntry> Entries { get; }
Property Value
- IEnumerable<IUpdateEntry>