DiscriminatorValueGeneratorFactory.Create 方法

定义

重载

Create(IProperty, IEntityType)

创建新的值生成器。

Create(IProperty, ITypeBase)

创建新的值生成器。

Create(IProperty, IEntityType)

Source:
DiscriminatorValueGeneratorFactory.cs
Source:
DiscriminatorValueGeneratorFactory.cs

创建新的值生成器。

public override Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator Create (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
override this.Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Public Overrides Function Create (property As IProperty, entityType As IEntityType) As ValueGenerator

参数

property
IProperty

要为其创建值生成器的属性。

entityType
IEntityType

将对其使用值生成器的实体类型。

返回

新创建的值生成器。

适用于

Create(IProperty, ITypeBase)

Source:
DiscriminatorValueGeneratorFactory.cs
Source:
DiscriminatorValueGeneratorFactory.cs

创建新的值生成器。

public override Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator Create (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.ITypeBase entityType);
override this.Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Public Overrides Function Create (property As IProperty, entityType As ITypeBase) As ValueGenerator

参数

property
IProperty

要为其创建值生成器的属性。

entityType
ITypeBase

返回

新创建的值生成器。

适用于