RelationalValueGenerationConvention.MappingStrategyAllowsValueGeneration Method
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.
Checks whether or not the mapping strategy and property allow value generation by convention.
protected virtual bool MappingStrategyAllowsValueGeneration (Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? mappingStrategy);
abstract member MappingStrategyAllowsValueGeneration : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string -> bool
override this.MappingStrategyAllowsValueGeneration : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string -> bool
Protected Overridable Function MappingStrategyAllowsValueGeneration (property As IConventionProperty, mappingStrategy As String) As Boolean
Parameters
- property
- IConventionProperty
The property for which value generation is being considered.
- mappingStrategy
- String
The current mapping strategy.
Returns
true
if value generation is allowed; false
otherwise.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework