Click or drag to resize

EntityModelGraphGetAllRelationshipBasedUniqueConstraintsForEntity Method

Gets all relationship based unique constraints for the entity specified. Relationship based unique constraints are unique constraints which are not defined in the model itself but are present for 1:1 FK/UC-PK relationships where the entity specified is at the FK side. Only direct relationships are considered, not inherited relationships.

Namespace:  SD.LLBLGen.Pro.ApplicationCore.EntityModel
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.10.0.0 (5.10.0)
Syntax
public IEnumerable<UniqueConstraint> GetAllRelationshipBasedUniqueConstraintsForEntity(
	EntityDefinition entity
)

Parameters

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

Return Value

Type: IEnumerableUniqueConstraint
All relationship based unique constraints for the entity specified.
Remarks
The unique constraint objects are created by this method and are not present in the model.
See Also