ValueGeneratorFactory.Create Method

Definition

Overloads

Create(IProperty)
Obsolete.

Creates a new value generator.

Create(IProperty, IEntityType)

Creates a new value generator.

Create(IProperty, ITypeBase)

Creates a new value generator.

Create(IProperty)

Caution

Use the overload with most parameters

Creates a new value generator.

public abstract Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator Create (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use the overload with most parameters")]
public virtual Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator Create (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
abstract member Create : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
[<System.Obsolete("Use the overload with most parameters")>]
abstract member Create : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
override this.Create : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Public MustOverride Function Create (property As IProperty) As ValueGenerator
Public Overridable Function Create (property As IProperty) As ValueGenerator

Parameters

property
IProperty

The property to create the value generator for.

Returns

The newly created value generator.

Attributes

Remarks

See EF Core value generation for more information.

Applies to

Create(IProperty, IEntityType)

Creates a new value generator.

public abstract Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator Create (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Public MustOverride 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.

Remarks

See EF Core value generation for more information and examples.

Applies to

Create(IProperty, ITypeBase)

Creates a new value generator.

public abstract Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator Create (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase);
abstract member Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Public MustOverride Function Create (property As IProperty, typeBase As ITypeBase) As ValueGenerator

Parameters

property
IProperty

The property to create the value generator for.

typeBase
ITypeBase

The type for which the value generator will be used.

Returns

The newly created value generator.

Remarks

See EF Core value generation for more information and examples.

Applies to