DiscriminatorBuilder.IConventionDiscriminatorBuilder.CanSetValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
IConventionDiscriminatorBuilder.CanSetValue(Object, Boolean) |
Returns a value indicating whether the discriminator value can be set from this configuration source. |
IConventionDiscriminatorBuilder.CanSetValue(IConventionEntityType, Object, Boolean) |
Returns a value indicating whether the discriminator value can be set from this configuration source. |
IConventionDiscriminatorBuilder.CanSetValue(Object, Boolean)
Returns a value indicating whether the discriminator value can be set from this configuration source.
bool IConventionDiscriminatorBuilder.CanSetValue (object value, bool fromDataAnnotation);
bool IConventionDiscriminatorBuilder.CanSetValue (object? value, bool fromDataAnnotation);
abstract member Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDiscriminatorBuilder.CanSetValue : obj * bool -> bool
override this.Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDiscriminatorBuilder.CanSetValue : obj * bool -> bool
Function CanSetValue (value As Object, fromDataAnnotation As Boolean) As Boolean Implements IConventionDiscriminatorBuilder.CanSetValue
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.
Implements
Applies to
IConventionDiscriminatorBuilder.CanSetValue(IConventionEntityType, Object, Boolean)
Returns a value indicating whether the discriminator value can be set from this configuration source.
bool IConventionDiscriminatorBuilder.CanSetValue (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, object value, bool fromDataAnnotation);
abstract member Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDiscriminatorBuilder.CanSetValue : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * obj * bool -> bool
override this.Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDiscriminatorBuilder.CanSetValue : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * obj * bool -> bool
Function CanSetValue (entityType As IConventionEntityType, value As Object, fromDataAnnotation As Boolean) As Boolean Implements IConventionDiscriminatorBuilder.CanSetValue
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.
Implements
Applies to
Entity Framework