Freigeben über


RelationalValueGenerationConvention.MappingStrategyAllowsValueGeneration Methode

Definition

Überprüft, ob die Zuordnungsstrategie und -eigenschaft die Wertgenerierung nach Konvention zulassen oder nicht.

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

Parameter

property
IConventionProperty

Die Eigenschaft, für die die Wertgenerierung berücksichtigt wird.

mappingStrategy
String

Die aktuelle Zuordnungsstrategie.

Gibt zurück

true , wenn die Wertgenerierung zulässig ist; false Andernfalls.

Gilt für: