Bagikan melalui


RelationalValueGenerationConvention.MappingStrategyAllowsValueGeneration Metode

Definisi

Memeriksa apakah strategi pemetaan dan properti memungkinkan pembuatan nilai berdasarkan konvensi atau tidak.

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

Properti yang pembuatan nilainya sedang dipertimbangkan.

mappingStrategy
String

Strategi pemetaan saat ini.

Mengembalikan

true jika pembuatan nilai diizinkan; false Sebaliknya.

Berlaku untuk