Compartilhar via


PropertyExtensions.GetValueGeneratorFactory(IProperty) Método

Definição

Cuidado

Use IReadOnlyProperty.GetValueGeneratorFactory

Obtém a fábrica que foi definida para gerar valores para essa propriedade, se houver.

public static Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator> GetValueGeneratorFactory (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use IReadOnlyProperty.GetValueGeneratorFactory")]
public static Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>? GetValueGeneratorFactory (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetValueGeneratorFactory : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, Microsoft.EntityFrameworkCore.Metadata.IEntityType, Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>
[<System.Obsolete("Use IReadOnlyProperty.GetValueGeneratorFactory")>]
static member GetValueGeneratorFactory : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, Microsoft.EntityFrameworkCore.Metadata.IEntityType, Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>
<Extension()>
Public Function GetValueGeneratorFactory (property As IProperty) As Func(Of IProperty, IEntityType, ValueGenerator)

Parâmetros

property
IProperty

A propriedade para a qual obter a fábrica do gerador de valor.

Retornos

A fábrica ou null se nenhuma fábrica tiver sido definida.

Atributos

Aplica-se a