示例#1
0
        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);
        }
示例#2
0
        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);
        }