KeyComplexPropertyConvention(ProviderConventionSetBuilderDependencies) Constructor
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 marks every complex property in the path to a property used by a key as required, since the value of such a property must be available in order to compute the key value.
public KeyComplexPropertyConvention(Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies dependencies);
new Microsoft.EntityFrameworkCore.Metadata.Conventions.KeyComplexPropertyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies -> Microsoft.EntityFrameworkCore.Metadata.Conventions.KeyComplexPropertyConvention
Public Sub New (dependencies As ProviderConventionSetBuilderDependencies)
Parameters
- dependencies
- ProviderConventionSetBuilderDependencies
Parameter object containing dependencies for this convention.
Remarks
When the last referencing key is removed, the implicit non-nullable configuration applied here is reverted as long as no other key keeps the chain in use and no explicit configuration was applied by the user.
See Model building conventions for more information and examples.