public override void AddMappedFieldIndices(List <int> parentFieldIndices, DataSet parentDataSet, DataSet ourDataSet, List <int> ourFieldIndices)
        {
            Global.Tracer.Assert(DataSet.AreEqualById(this.m_parentDataSet, parentDataSet), "Invalid parent data set");
            Relationship activeRelationship = this.GetActiveRelationship(ourDataSet);

            JoinInfo.AddMappedFieldIndices(activeRelationship, parentFieldIndices, ourFieldIndices);
        }
示例#2
0
        public override void AddMappedFieldIndices(List <int> parentFieldIndices, DataSet parentDataSet, DataSet ourDataSet, List <int> ourFieldIndices)
        {
            Relationship relationship;

            if (DataSet.AreEqualById(this.m_rowParentDataSet, parentDataSet))
            {
                relationship = this.GetActiveRowRelationship(ourDataSet);
            }
            else if (DataSet.AreEqualById(this.m_columnParentDataSet, parentDataSet))
            {
                relationship = this.GetActiveColumnRelationship(ourDataSet);
            }
            else
            {
                Global.Tracer.Assert(false, "Invalid parent data set");
                relationship = null;
            }
            JoinInfo.AddMappedFieldIndices(relationship, parentFieldIndices, ourFieldIndices);
        }