Jazyk

CoreStrings.NonGenericOptions(Object) Metoda

Definice

DbContextOptions předané konstruktoru {contextType} musí být DbContextOptions<{contextType}>. Při registraci více typů DbContext se ujistěte, že konstruktor pro každý typ kontextu má parametr TContextOptions<> místo parametru DbContextOptions non-generic DbContextOptions.

public static string NonGenericOptions(object? contextType);
public static string NonGenericOptions(object contextType);
static member NonGenericOptions : obj -> string
Public Shared Function NonGenericOptions (contextType As Object) As String

Parametry

contextType
Object

Návraty

Platí pro