ConverterMappingHints.ValueGeneratorFactory 属性

定义

注意

现已弃用此 API。

一个可选工厂,用于创建特定的 ValueGenerator ,以便在使用此转换器时用于模型值。

public virtual Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator> ValueGeneratorFactory { get; }
public virtual Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>? ValueGeneratorFactory { get; }
[System.Obsolete]
public virtual Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>? ValueGeneratorFactory { get; }
member this.ValueGeneratorFactory : Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, Microsoft.EntityFrameworkCore.Metadata.IEntityType, Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>
[<System.Obsolete>]
member this.ValueGeneratorFactory : Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, Microsoft.EntityFrameworkCore.Metadata.IEntityType, Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>
Public Overridable ReadOnly Property ValueGeneratorFactory As Func(Of IProperty, IEntityType, ValueGenerator)

属性值

属性

适用于