Sdílet prostřednictvím


InterceptionResult<TResult>.SuppressWithResult(TResult) Metoda

Definice

Vytvoří novou InterceptionResult<TResult> instanci, která indikuje, že spuštění by mělo být potlačeno a místo toho by se měl použít daný výsledek.

public static Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<TResult> SuppressWithResult (TResult result);
static member SuppressWithResult : 'Result -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<'Result>
Public Shared Function SuppressWithResult (result As TResult) As InterceptionResult(Of TResult)

Parametry

result
TResult

Výsledek, který se má použít.

Návraty

Platí pro