語言

RelationalTableAttributeConvention 類別

定義

一種根據應用 TableAttribute的 配置實體類型資料表名稱與結構的慣例。

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

備註

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

建構函式

名稱 Description
RelationalTableAttributeConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

建立一個新的 實例。RelationalTableAttributeConvention

屬性

名稱 Description
Dependencies

此服務的依賴關係。

(繼承來源 TypeAttributeConventionBase<TAttribute>)
Dependencies

此服務的依賴關係。

(繼承來源 EntityTypeAttributeConventionBase<TAttribute>)
RelationalDependencies

此服務的關聯提供者專屬相依關係。

方法

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

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

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

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

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

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

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

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

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

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

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

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

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

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

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

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

(繼承來源 TypeAttributeConventionBase<TAttribute>)

適用於