語言

ForeignKeyPrimitivePropertyAttributeConvention 類別

定義

處理在模型中外鍵屬性上找到之 ForeignKeyAttribute 實例的慣例。

public class ForeignKeyPrimitivePropertyAttributeConvention : System.Data.Entity.ModelConfiguration.Conventions.PropertyAttributeConfigurationConvention<System.ComponentModel.DataAnnotations.Schema.ForeignKeyAttribute>
type ForeignKeyPrimitivePropertyAttributeConvention = class
    inherit PropertyAttributeConfigurationConvention<ForeignKeyAttribute>
Public Class ForeignKeyPrimitivePropertyAttributeConvention
Inherits PropertyAttributeConfigurationConvention(Of ForeignKeyAttribute)
繼承
ForeignKeyPrimitivePropertyAttributeConvention
繼承
ForeignKeyPrimitivePropertyAttributeConvention

建構函式

名稱 Description
ForeignKeyPrimitivePropertyAttributeConvention()

處理在模型中外鍵屬性上找到之 ForeignKeyAttribute 實例的慣例。

方法

名稱 Description
Apply(PropertyInfo, ConventionTypeConfiguration, ForeignKeyAttribute)

處理在模型中外鍵屬性上找到之 ForeignKeyAttribute 實例的慣例。

Apply(PropertyInfo, ConventionTypeConfiguration, TAttribute)

將此慣例套用至已套用 TAttribute 類型的屬性的屬性。

(繼承來源 PropertyAttributeConfigurationConvention<TAttribute>)
Properties()

開始設定套用至模型中所有屬性的輕量型慣例。

(繼承來源 Convention)
Properties<T>()

開始設定輕量型慣例,以套用至模型中指定型別的所有基本屬性。

(繼承來源 Convention)
Types()

開始設定適用于模型中所有對應類型的輕量型慣例。

(繼承來源 Convention)
Types<T>()

開始設定輕量型慣例,此慣例會套用至衍生自或實作指定型別之模型中的所有對應型別。

(繼承來源 Convention)

適用於