IConventionPropertyBuilder.CanSetValueGenerator 方法

定义

重载

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

返回一个值, ValueGenerator 该值指示是否可以从当前配置源为此属性配置 。

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

返回一个值, ValueGenerator 该值指示是否可以从当前配置源为此属性配置 。

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

Source:
IConventionPropertyBuilder.cs
Source:
IConventionPropertyBuilder.cs

返回一个值, ValueGenerator 该值指示是否可以从当前配置源为此属性配置 。

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

参数

factory
Func<IProperty,ITypeBase,ValueGenerator>

将用于创建值生成器实例的委托。

fromDataAnnotation
Boolean

指示配置是否是使用数据注释指定的。

返回

如果应用了配置,则为同一生成器实例, null 否则为 。

适用于

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

Source:
IConventionPropertyBuilder.cs

返回一个值, ValueGenerator 该值指示是否可以从当前配置源为此属性配置 。

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

参数

factory
Func<IProperty,IEntityType,ValueGenerator>

将用于创建值生成器实例的委托。

fromDataAnnotation
Boolean

指示配置是否是使用数据注释指定的。

返回

如果应用了配置,则为同一生成器实例, null 否则为 。

适用于