Click or drag to resize
RelationCollection.Add Method (IEntityRelation, String)
Adds the passed in IEntityRelation instance to the list, under the alias specified for the end entity. The start entity gets no alias. The weakness of the relation is considered based on the ObeyWeakRelations setting.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax
public IEntityRelation Add(
	IEntityRelation relationToAdd,
	string aliasRelationEndEntity
)

Parameters

relationToAdd
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityRelation
IEntityRelation instance to add
aliasRelationEndEntity
Type: System.String
the alias for the end entity in the relation (Customer.Relations.OrderUsingCustomerID: Order is end entity). Alias is case sensitive

Return Value

Type: IEntityRelation
the added relation in the list, so you can chain commands on 1 line

Implements

IRelationCollection.Add(IEntityRelation, String)
Exceptions
ExceptionCondition
ArgumentExceptionwhen aliasRelationEndEntity is an empty string, null or otherwise unusable alias (contains spaces)
See Also