CosmosDiscriminatorConvention 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將實體類型的鑒別子值設定為實體類型名稱的慣例。
public class CosmosDiscriminatorConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.DiscriminatorConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention
public class CosmosDiscriminatorConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.DiscriminatorConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyOwnershipChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyRemovedConvention
public class CosmosDiscriminatorConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.DiscriminatorConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyOwnershipChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyRemovedConvention
type CosmosDiscriminatorConvention = class
inherit DiscriminatorConvention
interface IEntityTypeAddedConvention
interface IConvention
type CosmosDiscriminatorConvention = class
inherit DiscriminatorConvention
interface IForeignKeyOwnershipChangedConvention
interface IConvention
interface IForeignKeyRemovedConvention
interface IEntityTypeAddedConvention
type CosmosDiscriminatorConvention = class
inherit DiscriminatorConvention
interface IForeignKeyOwnershipChangedConvention
interface IConvention
interface IForeignKeyRemovedConvention
interface IEntityTypeAddedConvention
interface IEntityTypeAnnotationChangedConvention
Public Class CosmosDiscriminatorConvention
Inherits DiscriminatorConvention
Implements IEntityTypeAddedConvention
Public Class CosmosDiscriminatorConvention
Inherits DiscriminatorConvention
Implements IEntityTypeAddedConvention, IForeignKeyOwnershipChangedConvention, IForeignKeyRemovedConvention
Public Class CosmosDiscriminatorConvention
Inherits DiscriminatorConvention
Implements IEntityTypeAddedConvention, IEntityTypeAnnotationChangedConvention, IForeignKeyOwnershipChangedConvention, IForeignKeyRemovedConvention
- 繼承
- 實作
備註
如需詳細資訊和範例,請參閱 模型建置慣例和 使用 EF Core 存取 Azure Cosmos DB 。
建構函式
CosmosDiscriminatorConvention(ProviderConventionSetBuilderDependencies) |
建立 CosmosDiscriminatorConvention 的新執行個體。 |
屬性
Dependencies |
此服務的相依性。 (繼承來源 DiscriminatorConvention) |