コード例 #1
0
        public string ExplaneMergeRecord(MergeObject mRec)
        {
            string error = String.Empty;

            //if (mRec.ComponentConflict != null)
            //{
            //    error += "Conflict found with record in component " + mRec.ComponentConflictFileID + " ";
            //    if (mRec.ComponentConflict != mRec.ComponentRowID)
            //    { error += "possibly the same tree entered into different files "; }
            //    else
            //    { error += "possibly because field data from other components was not removed when component file was created "; }
            //}
            //if (mRec.MasterConflict != null)
            //{
            //    error += "Conflict found with record in Master ";
            //    if (mRec.MasterConflict == mRec.ComponentRowID)
            //    {
            //        error += "possibly because another copy of component file made initial merge of this record, please find original component file ";
            //    }
            //    else
            //    {
            //        error += "duplicate record ";
            //    }
            //}

            return error;
        }
コード例 #2
0
 public long GetMatchRowID(MergeObject mRec)
 {
     if (this._doGuidMatch && mRec.GUIDMatch != null)
     {
         return mRec.GUIDMatch.Value;
     }
     if (this.DoNaturalMatch && mRec.NaturalMatch != null)
     {
         return mRec.NaturalMatch.Value;
     }
     else
     {
         return mRec.RowIDMatch.GetValueOrDefault(0);
     }
 }