Click or drag to resize
SubHierarchyViewCheckIfEntityCanHaveDiscriminatorValueSet Method
Checks if entity can have its discriminator value set to a value. This depends on the fact if the entity is in a TargetPerEntityHierarchy hierarchy and if the root of the subhierarchy it is in has its discriminatorfield set or if the entity specified is the root of the subhierarchy

Namespace:  SD.LLBLGen.Pro.ApplicationCore.EntityModel
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.1.0.0 (5.1.0)
Syntax
public bool CheckIfEntityCanHaveDiscriminatorValueSet(
	EntityDefinition entity
)

Parameters

entity
Type: SD.LLBLGen.Pro.ApplicationCore.EntityModelEntityDefinition
The entity.

Return Value

Type: Boolean
true if the DiscriminatorValue can be set, false otherwise
Remarks
Not part of EntityDefinition, as it has to consult inheritance information which is stored outside the entity
See Also