DependentNavigationPropertyConfiguration<TDependentEntityType> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定可支援外部索引鍵屬性的關聯性,這些屬性會在物件模型中公開。 此組態功能可透過 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) |