public void SetRelationship(string dataSetName, IdcRelationship relationship) { this.m_dataSetName = dataSetName; if (relationship != null) { this.m_joinInfo = new LinearJoinInfo(relationship); } }
private void CheckRelationshipDataSetBinding(ScopeTree scopeTree, ErrorContext errorContext, IRIFReportDataScope currentScope, IdcRelationship relationship, DataSet parentDataSetCandidate, ref bool dataSetAlreadyHasRelationship) { if (DataSet.AreEqualById(relationship.RelatedDataSet, parentDataSetCandidate)) { if (dataSetAlreadyHasRelationship) { IRIFDataScope parentDataRegion = scopeTree.GetParentDataRegion(currentScope); IRIFDataScope parentRowScopeForIntersection = scopeTree.GetParentRowScopeForIntersection(currentScope); IRIFDataScope parentColumnScopeForIntersection = scopeTree.GetParentColumnScopeForIntersection(currentScope); errorContext.Register(ProcessingErrorCode.rsInvalidRelationshipDuplicateParentScope, Severity.Error, currentScope.DataScopeObjectType, parentDataRegion.Name, "ParentScope", parentDataRegion.DataScopeObjectType.ToString(), parentRowScopeForIntersection.Name, parentColumnScopeForIntersection.Name); } dataSetAlreadyHasRelationship = true; } }
public LinearJoinInfo(IdcRelationship relationship) : base(relationship) { }
public JoinInfo(IdcRelationship relationship) { this.m_relationships = new List <IdcRelationship>(1); this.m_relationships.Add(relationship); }