DiscriminatorConvention 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將階層中實體類型的辨別值設定為實體類型名稱的慣例。
public class DiscriminatorConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeRemovedConvention
public class DiscriminatorConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IDiscriminatorPropertySetConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeRemovedConvention
type DiscriminatorConvention = class
interface IEntityTypeBaseTypeChangedConvention
interface IConvention
interface IEntityTypeRemovedConvention
type DiscriminatorConvention = class
interface IEntityTypeBaseTypeChangedConvention
interface IConvention
interface IEntityTypeRemovedConvention
interface IDiscriminatorPropertySetConvention
Public Class DiscriminatorConvention
Implements IEntityTypeBaseTypeChangedConvention, IEntityTypeRemovedConvention
Public Class DiscriminatorConvention
Implements IDiscriminatorPropertySetConvention, IEntityTypeBaseTypeChangedConvention, IEntityTypeRemovedConvention
- 繼承
-
DiscriminatorConvention
- 衍生
- 實作
備註
如需詳細資訊和範例,請參閱 模型建置慣例 。
建構函式
DiscriminatorConvention(ProviderConventionSetBuilderDependencies) |
建立 DiscriminatorConvention 的新執行個體。 |
屬性
Dependencies |
此服務的相依性。 |