CoreStrings.DerivedEntityTypeKey(Object, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
不能在“{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
返回
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈