PropertyExtensions.GetValueGeneratorFactory(IProperty) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework