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) |