共用方式為


RelationalConcurrencyExceptionEventData 建構函式

定義

建構事件承載。

public RelationalConcurrencyExceptionEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Microsoft.EntityFrameworkCore.DbContext context, System.Data.Common.DbConnection connection, System.Data.Common.DbCommand command, System.Data.Common.DbDataReader dataReader, Guid commandId, Guid connectionId, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> entries, Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException exception);
new Microsoft.EntityFrameworkCore.Diagnostics.RelationalConcurrencyExceptionEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * Microsoft.EntityFrameworkCore.DbContext * System.Data.Common.DbConnection * System.Data.Common.DbCommand * System.Data.Common.DbDataReader * Guid * Guid * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> * Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException -> Microsoft.EntityFrameworkCore.Diagnostics.RelationalConcurrencyExceptionEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), context As DbContext, connection As DbConnection, command As DbCommand, dataReader As DbDataReader, commandId As Guid, connectionId As Guid, entries As IReadOnlyList(Of IUpdateEntry), exception As DbUpdateConcurrencyException)

參數

eventDefinition
EventDefinitionBase

事件定義。

messageGenerator
Func<EventDefinitionBase,EventData,String>

產生此事件的記錄訊息的委派。

context
DbContext

目前的 DbContext

connection
DbConnection

DbConnection所使用的 。

command
DbCommand

DbCommand所使用的 。

dataReader
DbDataReader

DbDataReader所使用的 。

commandId
Guid

識別所使用實例的 DbCommand 相互關聯識別碼。

connectionId
Guid

識別所使用實例的 DbConnection 相互關聯識別碼。

entries
IReadOnlyList<IUpdateEntry>

涉及平行存取違規的專案。

exception
DbUpdateConcurrencyException

除非隱藏擲回,否則將會擲回的例外狀況。

適用於