Share via


IConventionDiscriminatorBuilder.CanSetValue Method

Definition

Overloads

CanSetValue(Object, Boolean)

Returns a value indicating whether the discriminator value can be set from this configuration source.

CanSetValue(IConventionEntityType, Object, Boolean)

Returns a value indicating whether the discriminator value can be set from this configuration source.

CanSetValue(Object, Boolean)

Source:
IConventionDiscriminatorBuilder.cs
Source:
IConventionDiscriminatorBuilder.cs
Source:
IConventionDiscriminatorBuilder.cs
Source:
IConventionDiscriminatorBuilder.cs

Returns a value indicating whether the discriminator value can be set from this configuration source.

public bool CanSetValue (object value, bool fromDataAnnotation = false);
public bool CanSetValue (object? value, bool fromDataAnnotation = false);
abstract member CanSetValue : obj * bool -> bool
Public Function CanSetValue (value As Object, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

value
Object

The discriminator value.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the discriminator value can be set from this configuration source.

Applies to

CanSetValue(IConventionEntityType, Object, Boolean)

Source:
IConventionDiscriminatorBuilder.cs
Source:
IConventionDiscriminatorBuilder.cs
Source:
IConventionDiscriminatorBuilder.cs
Source:
IConventionDiscriminatorBuilder.cs

Returns a value indicating whether the discriminator value can be set from this configuration source.

public bool CanSetValue (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, object value, bool fromDataAnnotation = false);
public virtual bool CanSetValue (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, object? value, bool fromDataAnnotation = false);
abstract member CanSetValue : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * obj * bool -> bool
abstract member CanSetValue : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * obj * bool -> bool
override this.CanSetValue : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * obj * bool -> bool
Public Function CanSetValue (entityType As IConventionEntityType, value As Object, Optional fromDataAnnotation As Boolean = false) As Boolean
Public Overridable Function CanSetValue (entityType As IConventionEntityType, value As Object, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

entityType
IConventionEntityType

The entity type for which a discriminator value is being set.

value
Object

The discriminator value.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the discriminator value can be set from this configuration source.

Applies to