DiscriminatorBuilder.HasValue 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
HasValue(Object) |
Configures the default discriminator value to use. |
HasValue(String, Object) |
Configures the discriminator value to use for entities of the given type. |
HasValue(Type, Object) |
Configures the discriminator value to use for entities of the given type. |
HasValue<TEntity>(Object) |
Configures the discriminator value to use for entities of the given generic type. |
HasValue(Object)
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
Configures the default discriminator value to use.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue (object value);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue (object? value);
abstract member HasValue : obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
override this.HasValue : obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
Public Overridable Function HasValue (value As Object) As DiscriminatorBuilder
Parameters
- value
- Object
The discriminator value.
Returns
The same builder so that multiple calls can be chained.
Applies to
HasValue(String, Object)
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
Configures the discriminator value to use for entities of the given type.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue (string entityTypeName, object value);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue (string entityTypeName, object? value);
abstract member HasValue : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
override this.HasValue : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
Public Overridable Function HasValue (entityTypeName As String, value As Object) As DiscriminatorBuilder
Parameters
- entityTypeName
- String
The name of the entity type for which a discriminator value is being set.
- value
- Object
The discriminator value.
Returns
The same builder so that multiple calls can be chained.
Applies to
HasValue(Type, Object)
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
Configures the discriminator value to use for entities of the given type.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue (Type entityType, object value);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue (Type entityType, object? value);
abstract member HasValue : Type * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
override this.HasValue : Type * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
Public Overridable Function HasValue (entityType As Type, value As Object) As DiscriminatorBuilder
Parameters
- entityType
- Type
The entity type for which a discriminator value is being set.
- value
- Object
The discriminator value.
Returns
The same builder so that multiple calls can be chained.
Applies to
HasValue<TEntity>(Object)
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
- Source:
- DiscriminatorBuilder.cs
Configures the discriminator value to use for entities of the given generic type.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue<TEntity> (object value);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue<TEntity> (object? value);
abstract member HasValue : obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
override this.HasValue : obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
Public Overridable Function HasValue(Of TEntity) (value As Object) As DiscriminatorBuilder
Type Parameters
- TEntity
The entity type for which a discriminator value is being set.
Parameters
- value
- Object
The discriminator value.
Returns
The same builder so that multiple calls can be chained.
Applies to
Entity Framework