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 否则。

适用于