Method for validate reference of aggregated objects in objects with support of branches

Namespace: Xafari.BC.Branches
Assembly: Xafari.BC.Branches (in Xafari.BC.Branches.dll)

Syntax

C#

public static bool IsBranchObjectReferenceValid(
   IBranchSupportownerBranchObject,
   IList<IMemberInfomembersInfo = null
)

Parameters

ownerBranchObject

Object with support of branches which need to validate

membersInfo

Optional parameter for internal use. You can keep this parameter with default value

 

 

Return Value

True if object has valid properties with attribute AggregatedToAttribute, otherwise false

 

Remarks

Object with properties which decorated with AggregatedToAttribute must belong to one single branch. This method checks this rule

See Also