CoreStrings.DerivedEntityTypeKey(Object, Object) 方法

定义

不能在“{derivedType}”上配置密钥,因为它是派生类型。 必须在根类型“{rootType}”上配置密钥。 如果不打算将“{rootType}”包含在模型中,请确保它不受上下文上的 DbSet 属性引用、在对 ModelBuilder 的配置调用中引用或从模型中包括的类型上的导航引用。

public static string DerivedEntityTypeKey (object derivedType, object rootType);
public static string DerivedEntityTypeKey (object? derivedType, object? rootType);
static member DerivedEntityTypeKey : obj * obj -> string
Public Shared Function DerivedEntityTypeKey (derivedType As Object, rootType As Object) As String

参数

derivedType
Object
rootType
Object

返回

适用于