語言

KeylessAttributeConvention 類別

定義

一個忽略具有 . KeylessAttribute的實體類型。

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class KeylessAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.TypeAttributeConventionBase<Microsoft.EntityFrameworkCore.KeylessAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type KeylessAttributeConvention = class
    inherit TypeAttributeConventionBase<KeylessAttribute>
Public Class KeylessAttributeConvention
Inherits TypeAttributeConventionBase(Of KeylessAttribute)
繼承
屬性

備註

更多資訊與範例請參閱 模型建構慣例 。

建構函式

名稱 Description
KeylessAttributeConvention(ProviderConventionSetBuilderDependencies)

建立一個新的 實例。KeylessAttributeConvention

屬性

名稱 Description
Dependencies

此服務的依賴關係。

(繼承來源 TypeAttributeConventionBase<TAttribute>)

方法

名稱 Description
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

在將複雜屬性加入類型物件後呼叫。

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

在加入複雜型態後呼叫,前提是該類型有屬性。

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

在模型中加入實體類型後呼叫。

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

如果某個實體類型有屬性,則在模型中加入後呼叫。

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

如果某個實體類型有屬性,則在模型中加入後呼叫。

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

嘗試用實體類型取代複雜型態。

(繼承來源 TypeAttributeConventionBase<TAttribute>)

適用於