PropertyExtensions.GetValueGeneratorFactory(IProperty) Method

Definition

Caution

Use IReadOnlyProperty.GetValueGeneratorFactory

Gets the factory that has been set to generate values for this property, if any.

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)

Parameters

property
IProperty

The property to get the value generator factory for.

Returns

The factory, or null if no factory has been set.

Attributes

Applies to