Lenguaje

SqlServerValueGenerationConvention.MappingStrategyAllowsValueGeneration Método

Definición

Comprueba si la estrategia de asignación y la propiedad permiten la generación de valores por convención.

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

Parámetros

property
IConventionProperty

Propiedad para la que se está considerando la generación de valores.

mappingStrategy
String

Estrategia de asignación actual.

Devoluciones

true si se permite la generación de valores; false de lo contrario.

Se aplica a