Exemple #1
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 public CQConverter()
 {
     m_cqParams = new CQConverterParams();
     m_cqParams.entityRecords = new Dictionary <string, CQEntity>(TFStringComparer.OrdinalIgnoreCase);
     m_schemaFieldMap         = new Dictionary <string, FieldMaps>(TFStringComparer.OrdinalIgnoreCase);
     m_linkTypeMaps           = new Dictionary <string, LinkingLinkTypeMapping>();
 }
Exemple #2
0
        /// <summary>
        /// C'tor for creating insstance with minimal info
        /// </summary>
        /// <param name="entityDbId">DBID of the current record</param>
        /// <param name="curEntityName">Entity Name</param>
        /// <param name="pCQParams">ClearQuest Converter parameters</param>
        public CQEntityRec(int pEntityDbId,
                           string pCurEntityName,
                           CQConverterParams pCQParams
                           )
        {
            m_cqParams           = pCQParams;
            m_dbid               = pEntityDbId;
            m_entityName         = pCurEntityName;
            m_referencedEntities = new List <LinkRecord>();

            // store the list of schema maps for passing into other
            // recursive calls
            // find and load your own schema map
            foreach (SchemaMapping schMap in m_cqParams.schemaMaps)
            {
                if (TFStringComparer.WorkItemType.Equals(schMap.entity, pCurEntityName))
                {
                    m_MySchemaMap = schMap;
                    break;
                }
            }
        } // end of CQEntityRec CTor