RelationalValueGenerationConvention.MappingStrategyAllowsValueGeneration Metoda

Definicja

Sprawdza, czy strategia mapowania i właściwość zezwalają na generowanie wartości według konwencji.

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

Parametry

property
IConventionProperty

Właściwość, dla której jest uwzględniane generowanie wartości.

mappingStrategy
String

Bieżąca strategia mapowania.

Zwraca

true jeśli generowanie wartości jest dozwolone; false Inaczej.

Dotyczy