語言

RelationalValueGenerationConvention.MappingStrategyAllowsValueGeneration 方法

定義

檢查映射策略與性質是否允許以慣例產生價值。

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

參數

property
IConventionProperty

價值產生所考慮的財產。

mappingStrategy
String

目前的地圖策略。

傳回

true 若允許價值產生; false 否則,

適用於