ProjectGetAllRelationshipBasedUniqueConstraintsForEntity 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.ProjectClasses
Assembly:
SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.1.0.0 (5.1.0)
Syntax public IEnumerable<UniqueConstraint> GetAllRelationshipBasedUniqueConstraintsForEntity(
EntityDefinition entity
)
Public Function GetAllRelationshipBasedUniqueConstraintsForEntity (
entity As EntityDefinition
) As IEnumerable(Of UniqueConstraint)
Parameters
- entity
- Type: SD.LLBLGen.Pro.ApplicationCore.EntityModelEntityDefinition
The entity.
Return Value
Type:
IEnumerableUniqueConstraintAll 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