CosmosDiscriminatorConvention Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A convention that configures the discriminator value for entity types as the entity type name.
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
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, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelEmbeddedDiscriminatorNameConvention
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
type CosmosDiscriminatorConvention = class
inherit DiscriminatorConvention
interface IForeignKeyOwnershipChangedConvention
interface IConvention
interface IForeignKeyRemovedConvention
interface IEntityTypeAddedConvention
interface IEntityTypeAnnotationChangedConvention
interface IModelEmbeddedDiscriminatorNameConvention
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
Public Class CosmosDiscriminatorConvention
Inherits DiscriminatorConvention
Implements IEntityTypeAddedConvention, IEntityTypeAnnotationChangedConvention, IForeignKeyOwnershipChangedConvention, IForeignKeyRemovedConvention, IModelEmbeddedDiscriminatorNameConvention
- Inheritance
- Implements
Remarks
See Model building conventions, and Accessing Azure Cosmos DB with EF Core for more information and examples.
Constructors
CosmosDiscriminatorConvention(ProviderConventionSetBuilderDependencies) |
Creates a new instance of CosmosDiscriminatorConvention. |
Properties
Dependencies |
Dependencies for this service. (Inherited from DiscriminatorConvention) |
Methods
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework