WarningsConfigurationBuilder.Throw(CoreEventId[]) Metodo

Definizione

Fa sì che venga generata un'eccezione quando vengono generati gli avvisi principali specificati. I provider di database (e altre estensioni) possono fornire overload del metodo di estensione di questo metodo per configurare questo comportamento per gli avvisi generati.

public virtual Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder Throw (params Microsoft.EntityFrameworkCore.Infrastructure.CoreEventId[] coreEventIds);
abstract member Throw : Microsoft.EntityFrameworkCore.Infrastructure.CoreEventId[] -> Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder
override this.Throw : Microsoft.EntityFrameworkCore.Infrastructure.CoreEventId[] -> Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder
Public Overridable Function Throw (ParamArray coreEventIds As CoreEventId()) As WarningsConfigurationBuilder

Parametri

coreEventIds
CoreEventId[]

Oggetto CoreEventId(s) per gli avvisi.

Restituisce

Stessa istanza del generatore in modo che più chiamate possano essere concatenati.

Si applica a