RuntimeForeignKey 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示由依赖实体类型属性组成的外键引用主体实体类型的相应主键或备用键的关系。
[System.Runtime.CompilerServices.Nullable(0)]
public class RuntimeForeignKey : Microsoft.EntityFrameworkCore.Infrastructure.RuntimeAnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeForeignKey
public class RuntimeForeignKey : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeForeignKey
[System.Runtime.CompilerServices.Nullable(0)]
public class RuntimeForeignKey : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeForeignKey
[<System.Runtime.CompilerServices.Nullable(0)>]
type RuntimeForeignKey = class
inherit RuntimeAnnotatableBase
interface IRuntimeForeignKey
interface IForeignKey
interface IReadOnlyForeignKey
interface IReadOnlyAnnotatable
interface IAnnotatable
type RuntimeForeignKey = class
inherit AnnotatableBase
interface IRuntimeForeignKey
interface IForeignKey
interface IReadOnlyForeignKey
interface IReadOnlyAnnotatable
interface IAnnotatable
[<System.Runtime.CompilerServices.Nullable(0)>]
type RuntimeForeignKey = class
inherit AnnotatableBase
interface IRuntimeForeignKey
interface IForeignKey
interface IReadOnlyForeignKey
interface IReadOnlyAnnotatable
interface IAnnotatable
Public Class RuntimeForeignKey
Inherits RuntimeAnnotatableBase
Implements IRuntimeForeignKey
Public Class RuntimeForeignKey
Inherits AnnotatableBase
Implements IRuntimeForeignKey
- 继承
- 继承
- 特性
- 实现
-
IAnnotatable IReadOnlyAnnotatable IForeignKey Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeForeignKey IReadOnlyForeignKey
注解
有关详细信息和示例,请参阅 建模实体类型和关系 。
构造函数
| 名称 | 说明 |
|---|---|
| RuntimeForeignKey(IReadOnlyList<RuntimeProperty>, RuntimeKey, RuntimeEntityType, RuntimeEntityType, DeleteBehavior, Boolean, Boolean, Boolean, Boolean, Boolean) |
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 |
| RuntimeForeignKey(IReadOnlyList<RuntimeProperty>, RuntimeKey, RuntimeEntityType, RuntimeEntityType, DeleteBehavior, Boolean, Boolean, Boolean, Boolean) |
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 |
属性
| 名称 | 说明 |
|---|---|
| DebugView |
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 |
| DeclaringEntityType |
获取依赖实体类型。 这可能与在继承层次结构中定义关系时定义的类型 Properties 不同(因为属性可能在基类型上定义)。 |
| IsReadOnly |
指示当前对象是否为只读。 (继承自 AnnotatableBase) |
| Item[String] |
获取具有给定名称的值批注,如果不存在,则 |
| Item[String] |
获取具有给定名称的值批注,如果不存在,则 |
| PrincipalEntityType |
获取此关系面向的主体实体类型。 这可能不同于当关系面向继承层次结构中派生类型的类型时定义的类型 PrincipalKey (因为该键是在层次结构的基类型上定义的)。 |
| PrincipalKey |
获取关系面向的主键或备用键。 |
| Properties |
获取从属实体中的外键属性。 |
| ReferencingSkipNavigations |
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 |