DependentNavigationPropertyConfiguration<TDependentEntityType> 类

定义

配置可以支持在对象模型中公开的外键属性的关系。 此配置功能通过 Code First Fluent API 提供,请参阅 DbModelBuilder

public class DependentNavigationPropertyConfiguration<TDependentEntityType> : System.Data.Entity.ModelConfiguration.Configuration.ForeignKeyNavigationPropertyConfiguration where TDependentEntityType : class
type DependentNavigationPropertyConfiguration<'DependentEntityType (requires 'DependentEntityType : null)> = class
    inherit ForeignKeyNavigationPropertyConfiguration
Public Class DependentNavigationPropertyConfiguration(Of TDependentEntityType)
Inherits ForeignKeyNavigationPropertyConfiguration

类型参数

TDependentEntityType

从属实体类型。

继承
DependentNavigationPropertyConfiguration<TDependentEntityType>

方法

Equals(Object)

配置可以支持在对象模型中公开的外键属性的关系。 此配置功能通过 Code First Fluent API 提供,请参阅 DbModelBuilder

GetHashCode()

配置可以支持在对象模型中公开的外键属性的关系。 此配置功能通过 Code First Fluent API 提供,请参阅 DbModelBuilder

GetType()

获取当前实例的 Type

HasForeignKey<TKey>(Expression<Func<TDependentEntityType,TKey>>)

将关系配置为使用在对象模型中公开的外键属性。 如果未在对象模型中公开外键属性,则使用 Map 方法。

Map(Action<ForeignKeyAssociationMappingConfiguration>)

将关系配置为使用未在对象模型中公开的外键属性。 可通过指定配置操作来自定义列和表。 如果指定了空的配置操作,则约定将生成列名。 如果在对象模型中公开了外键属性,则使用 HasForeignKey 方法。 并非所有关系都支持在对象模型中公开外键属性。

(继承自 ForeignKeyNavigationPropertyConfiguration)
ToString()

配置可以支持在对象模型中公开的外键属性的关系。 此配置功能通过 Code First Fluent API 提供,请参阅 DbModelBuilder

WillCascadeOnDelete()

将级联删除配置为对关系启用。

(继承自 CascadableNavigationPropertyConfiguration)
WillCascadeOnDelete(Boolean)

配置是否对关系启用级联删除。

(继承自 CascadableNavigationPropertyConfiguration)

适用于