PropertyExtensions.GetValueGeneratorFactory(IProperty) Methode

Definition

Achtung

Use IReadOnlyProperty.GetValueGeneratorFactory

Ruft die Factory ab, die festgelegt wurde, um Werte für diese Eigenschaft zu generieren, falls vorhanden.

C#
public static Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator> GetValueGeneratorFactory (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
C#
[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);

Parameter

property
IProperty

Die Eigenschaft, für die die Wertgeneratorfactory abgerufen werden soll.

Gibt zurück

Die Factory oder null , wenn keine Factory festgelegt wurde.

Attribute

Gilt für:

Produkt Versionen (Veraltet)
Entity Framework Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0 (6.0)