CoreStrings.NonGenericOptions(Object) 方法

定义

传递给 {contextType} 构造函数的 DbContextOptions 必须是 DbContextOptions<{contextType}>。 注册多个 DbContext 类型时,请确保每个上下文类型的构造函数具有 DbContextOptions<TContext> 参数,而不是非泛型 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

参数

contextType
Object

返回

适用于