Share via


RelationalValueGenerationConvention.MappingStrategyAllowsValueGeneration Method

Definition

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