NotMappedTypeAttributeConvention 類別

定義

忽略具有 之 NotMappedAttribute 實體類型的慣例。

public class NotMappedTypeAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.TypeAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.NotMappedAttribute>
type NotMappedTypeAttributeConvention = class
    inherit TypeAttributeConventionBase<NotMappedAttribute>
Public Class NotMappedTypeAttributeConvention
Inherits TypeAttributeConventionBase(Of NotMappedAttribute)
繼承
NotMappedTypeAttributeConvention

備註

如需詳細資訊和範例,請參閱 模型建置慣例

建構函式

NotMappedTypeAttributeConvention(ProviderConventionSetBuilderDependencies)

建立 NotMappedTypeAttributeConvention 的新執行個體。

屬性

Dependencies

此服務的相依性。

(繼承來源 TypeAttributeConventionBase<TAttribute>)

方法

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

在複雜屬性新增至類似型別的物件之後呼叫。

(繼承來源 TypeAttributeConventionBase<TAttribute>)
ProcessComplexTypeAdded(IConventionComplexTypeBuilder, TAttribute, IConventionContext)

如果模型具有 屬性,請在將複雜類型新增至模型之後呼叫。

(繼承來源 TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

在實體類型新增至模型之後呼叫。

(繼承來源 TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, NotMappedAttribute, IConventionContext<IConventionEntityTypeBuilder>)

如果實體類型具有屬性,請在模型新增實體類型之後呼叫。

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

如果實體類型具有屬性,請在模型新增實體類型之後呼叫。

(繼承來源 TypeAttributeConventionBase<TAttribute>)
ReplaceWithEntityType(IConventionComplexTypeBuilder, Nullable<Boolean>)

嘗試以實體類型取代複雜類型。

(繼承來源 TypeAttributeConventionBase<TAttribute>)

適用於