CosmosUnconstrainedForeignKeyConvention 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 non-owned foreign keys as unconstrained, because Azure Cosmos DB does not enforce foreign key constraints between documents. Owned (embedded) relationships remain constrained.
[System.Runtime.CompilerServices.Nullable(0)]
public class CosmosUnconstrainedForeignKeyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type CosmosUnconstrainedForeignKeyConvention = class
interface IModelFinalizingConvention
interface IConvention
Public Class CosmosUnconstrainedForeignKeyConvention
Implements IModelFinalizingConvention
- Inheritance
-
CosmosUnconstrainedForeignKeyConvention
- Attributes
- Implements
Remarks
See Model building conventions and Accessing Azure Cosmos DB with EF Core for more information and examples.
Constructors
| Name | Description |
|---|---|
| CosmosUnconstrainedForeignKeyConvention(ProviderConventionSetBuilderDependencies) |
Creates a new instance of CosmosUnconstrainedForeignKeyConvention. |
Properties
| Name | Description |
|---|---|
| Dependencies |
Dependencies for this service. |
Methods
| Name | Description |
|---|---|
| ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>) |
Called when a model is being finalized. |