RelationalConcurrencyExceptionEventData 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建構事件承載。
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>
產生此事件的記錄訊息的委派。
- connection
- DbConnection
DbConnection所使用的 。
- dataReader
- DbDataReader
DbDataReader所使用的 。
- connectionId
- Guid
識別所使用實例的 DbConnection 相互關聯識別碼。
- entries
- IReadOnlyList<IUpdateEntry>
涉及平行存取違規的專案。
- exception
- DbUpdateConcurrencyException
除非隱藏擲回,否則將會擲回的例外狀況。