ValueConditionConfiguration.HasValue Method

 

Configures the discriminator value used to identify the entity type being configured from other types in the inheritance hierarchy.

Namespace:   System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodHasValue(String)

Configures the discriminator value used to identify the entity type being configured from other types in the inheritance hierarchy.

System_CAPS_pubmethodHasValue<T>(T)

Configures the discriminator value used to identify the entity type being configured from other types in the inheritance hierarchy.

System_CAPS_pubmethodHasValue<T>(Nullable<T>)

Configures the discriminator value used to identify the entity type being configured from other types in the inheritance hierarchy.


ValueConditionConfiguration.HasValue Method (String)

Configures the discriminator value used to identify the entity type being configured from other types in the inheritance hierarchy.

public StringColumnConfiguration HasValue(
	string value
)

Parameters

value
Type: System.String

The value to be used to identify the entity type.

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.StringColumnConfiguration

A configuration object to configure the column used to store discriminator values.


ValueConditionConfiguration.HasValue<T> Method (T)

Configures the discriminator value used to identify the entity type being configured from other types in the inheritance hierarchy.

public PrimitiveColumnConfiguration HasValue<T>(
	T value
)
where T : struct

Parameters

value
Type: T

The value to be used to identify the entity type.

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.PrimitiveColumnConfiguration

A configuration object to configure the column used to store discriminator values.

Type Parameters

T

Type of the discriminator value.


ValueConditionConfiguration.HasValue<T> Method (Nullable<T>)

Configures the discriminator value used to identify the entity type being configured from other types in the inheritance hierarchy.

public PrimitiveColumnConfiguration HasValue<T>(
	Nullable<T> value
)
where T : struct

Parameters

value
Type: System.Nullable<T>

The value to be used to identify the entity type.

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.PrimitiveColumnConfiguration

A configuration object to configure the column used to store discriminator values.

Type Parameters

T

Type of the discriminator value.