SharedTableConvention 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 manipulates names of database objects for entity types that share a table to avoid clashes.
public class SharedTableConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public class SharedTableConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
type SharedTableConvention = class
interface IModelFinalizedConvention
interface IConvention
type SharedTableConvention = class
interface IModelFinalizingConvention
interface IConvention
Public Class SharedTableConvention
Implements IModelFinalizedConvention
Public Class SharedTableConvention
Implements IModelFinalizingConvention
- Inheritance
-
SharedTableConvention
- Derived
- Implements
Remarks
See Model building conventions for more information and examples.
Constructors
SharedTableConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
Creates a new instance of SharedTableConvention. |
Properties
CheckConstraintsUniqueAcrossTables |
Gets a value indicating whether check constraint names should be unique across tables. |
Dependencies |
Dependencies for this service. |
ForeignKeysUniqueAcrossTables |
Gets a value indicating whether foreign key names should be unique across tables. |
IndexesUniqueAcrossTables |
Gets a value indicating whether index names should be unique across tables. |
KeysUniqueAcrossTables |
Gets a value indicating whether key names should be unique across tables. |
RelationalDependencies |
Relational provider-specific dependencies for this service. |
TriggersUniqueAcrossTables |
Gets a value indicating whether trigger names should be unique across tables. |
Methods
AreCompatible(IForeignKey, IForeignKey, StoreObjectIdentifier) |
Gets a value indicating whether two foreign keys mapped to the same foreign key constraint are compatible. |
AreCompatible(IIndex, IIndex, StoreObjectIdentifier) |
Gets a value indicating whether two indexes mapped to the same table index are compatible. |
AreCompatible(IKey, IKey, StoreObjectIdentifier) |
Gets a value indicating whether two key mapped to the same constraint are compatible. |
AreCompatible(IReadOnlyCheckConstraint, IReadOnlyCheckConstraint, StoreObjectIdentifier) |
Gets a value indicating whether two check constraints with the same name are compatible. |
AreCompatible(IReadOnlyForeignKey, IReadOnlyForeignKey, StoreObjectIdentifier) |
Gets a value indicating whether two foreign keys mapped to the same foreign key constraint are compatible. |
AreCompatible(IReadOnlyIndex, IReadOnlyIndex, StoreObjectIdentifier) |
Gets a value indicating whether two indexes mapped to the same table index are compatible. |
AreCompatible(IReadOnlyKey, IReadOnlyKey, StoreObjectIdentifier) |
Gets a value indicating whether two key mapped to the same constraint are compatible. |
AreCompatible(IReadOnlyTrigger, IReadOnlyTrigger, StoreObjectIdentifier) |
Gets a value indicating whether two triggers with the same name are compatible. |
ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>) |
Called after a model is finalized. |
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>) |
Called when a model is being finalized. |
Applies to
Entity Framework