Share via


DiscriminatorValueGeneratorFactory.Create Method

Definition

Overloads

Create(IProperty, IEntityType)

Creates a new value generator.

Create(IProperty, ITypeBase)

Creates a new value generator.

Create(IProperty, IEntityType)

Source:
DiscriminatorValueGeneratorFactory.cs
Source:
DiscriminatorValueGeneratorFactory.cs

Creates a new value generator.

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

Parameters

property
IProperty

The property to create the value generator for.

entityType
IEntityType

The entity type for which the value generator will be used.

Returns

The newly created value generator.

Applies to

Create(IProperty, ITypeBase)

Source:
DiscriminatorValueGeneratorFactory.cs
Source:
DiscriminatorValueGeneratorFactory.cs

Creates a new value generator.

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

Parameters

property
IProperty

The property to create the value generator for.

entityType
ITypeBase

Returns

The newly created value generator.

Applies to