private static Relationship GetActiveRelationship(Microsoft.ReportingServices.ReportIntermediateFormat.DataSet targetDataSet, IRIFReportDataScope sourceDataScope) { Microsoft.ReportingServices.ReportIntermediateFormat.DataSet dataSet = sourceDataScope.DataScopeInfo.DataSet; Relationship defaultRelationship = targetDataSet.GetDefaultRelationship(dataSet); Global.Tracer.Assert(defaultRelationship != null, "Could not find active relationship"); return(defaultRelationship); }
protected Relationship GetActiveRelationship(DataSet ourDataSet, DataSet parentDataSet) { if (m_relationships == null && (ourDataSet == null || ourDataSet.DefaultRelationships == null)) { return(null); } Relationship relationship = FindActiveRelationship(m_relationships, parentDataSet); if (relationship == null && ourDataSet != null) { relationship = ourDataSet.GetDefaultRelationship(parentDataSet); } return(relationship); }