Esempio n. 1
0
        protected Relationship GetActiveRelationship(DataSet ourDataSet, DataSet parentDataSet)
        {
            if (this.m_relationships == null && (ourDataSet == null || ourDataSet.DefaultRelationships == null))
            {
                return(null);
            }
            Relationship relationship = JoinInfo.FindActiveRelationship(this.m_relationships, parentDataSet);

            if (relationship == null && ourDataSet != null)
            {
                relationship = ourDataSet.GetDefaultRelationship(parentDataSet);
            }
            return(relationship);
        }
Esempio n. 2
0
 public DefaultRelationship GetDefaultRelationship(DataSet parentDataSet)
 {
     return(JoinInfo.FindActiveRelationship(this.m_defaultRelationships, parentDataSet));
 }