Class NpgsqlSharedTableConvention
- Assembly
- Npgsql.EntityFrameworkCore.PostgreSQL.dll
A convention that manipulates names of database objects for entity types that share a table to avoid clashes.
public class NpgsqlSharedTableConvention : SharedTableConvention, IModelFinalizingConvention, IConvention- Inheritance
- 
      
      
      NpgsqlSharedTableConvention
- Implements
- Inherited Members
Constructors
NpgsqlSharedTableConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)
Creates a new instance of NpgsqlSharedTableConvention.
public NpgsqlSharedTableConvention(ProviderConventionSetBuilderDependencies dependencies, RelationalConventionSetBuilderDependencies relationalDependencies)Parameters
- dependenciesProviderConventionSetBuilderDependencies
- Parameter object containing dependencies for this convention. 
- relationalDependenciesRelationalConventionSetBuilderDependencies
- Parameter object containing relational dependencies for this convention. 
Properties
CheckConstraintsUniqueAcrossTables
Gets a value indicating whether check constraint names should be unique across tables.
protected override bool CheckConstraintsUniqueAcrossTables { get; }Property Value
Methods
AreCompatible(IReadOnlyIndex, IReadOnlyIndex, in StoreObjectIdentifier)
Gets a value indicating whether two indexes mapped to the same table index are compatible.
protected override bool AreCompatible(IReadOnlyIndex index, IReadOnlyIndex duplicateIndex, in StoreObjectIdentifier storeObject)Parameters
- indexIReadOnlyIndex
- An index. 
- duplicateIndexIReadOnlyIndex
- Another index. 
- storeObjectStoreObjectIdentifier
- The identifier of the store object.