Share via


IConventionPropertyBuilder.CanSetValueGenerator Method

Definition

Overloads

CanSetValueGenerator(Func<IProperty,ITypeBase,ValueGenerator>, Boolean)

Returns a value indicating whether the ValueGenerator can be configured for this property from the current configuration source.

CanSetValueGenerator(Func<IProperty,IEntityType,ValueGenerator>, Boolean)

Returns a value indicating whether the ValueGenerator can be configured for this property from the current configuration source.

CanSetValueGenerator(Func<IProperty,ITypeBase,ValueGenerator>, Boolean)

Returns a value indicating whether the ValueGenerator can be configured for this property from the current configuration source.

public bool CanSetValueGenerator (Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.ITypeBase,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>? factory, bool fromDataAnnotation = false);
abstract member CanSetValueGenerator : Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, Microsoft.EntityFrameworkCore.Metadata.ITypeBase, Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator> * bool -> bool
Public Function CanSetValueGenerator (factory As Func(Of IProperty, ITypeBase, ValueGenerator), Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

factory
Func<IProperty,ITypeBase,ValueGenerator>

A delegate that will be used to create value generator instances.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The same builder instance if the configuration was applied, null otherwise.

Applies to

CanSetValueGenerator(Func<IProperty,IEntityType,ValueGenerator>, Boolean)

Returns a value indicating whether the ValueGenerator can be configured for this property from the current configuration source.

public bool CanSetValueGenerator (Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator> factory, bool fromDataAnnotation = false);
public bool CanSetValueGenerator (Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>? factory, bool fromDataAnnotation = false);
abstract member CanSetValueGenerator : Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, Microsoft.EntityFrameworkCore.Metadata.IEntityType, Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator> * bool -> bool
Public Function CanSetValueGenerator (factory As Func(Of IProperty, IEntityType, ValueGenerator), Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

factory
Func<IProperty,IEntityType,ValueGenerator>

A delegate that will be used to create value generator instances.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The same builder instance if the configuration was applied, null otherwise.

Applies to