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
dependencies
ProviderConventionSetBuilderDependenciesParameter object containing dependencies for this convention.
relationalDependencies
RelationalConventionSetBuilderDependenciesParameter 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
index
IReadOnlyIndexAn index.
duplicateIndex
IReadOnlyIndexAnother index.
storeObject
StoreObjectIdentifierThe identifier of the store object.