语言

SqlServerValueGenerationConvention.MappingStrategyAllowsValueGeneration 方法

定义

检查映射策略和属性是否允许按约定生成值。

protected override bool MappingStrategyAllowsValueGeneration(Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? mappingStrategy);
override this.MappingStrategyAllowsValueGeneration : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string -> bool
Protected Overrides Function MappingStrategyAllowsValueGeneration (property As IConventionProperty, mappingStrategy As String) As Boolean

参数

property
IConventionProperty

要为其考虑值生成的属性。

mappingStrategy
String

当前映射策略。

返回

true 如果允许生成值,则为 false 否则。

适用于