SqlServerValueGenerationConvention.MappingStrategyAllowsValueGeneration 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检查映射策略和属性是否允许按约定生成值。
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 否则。