/// <summary>
        /// Initializes a new instance of the <see cref="MaintainableAnnotationRetrieverEngine"/> class.
        /// </summary>
        /// <param name="mappingStoreDb">The mapping store database.</param>
        /// <param name="tableInfo">The table information.</param>
        /// <exception cref="System.ArgumentNullException"><paramref name="tableInfo"/> is null -or- <paramref name="mappingStoreDb"/> is null.</exception>
        public MaintainableAnnotationRetrieverEngine(Database mappingStoreDb, TableInfo tableInfo)
        {
            if (mappingStoreDb == null)
            {
                throw new ArgumentNullException("mappingStoreDb");
            }

            if (tableInfo == null)
            {
                throw new ArgumentNullException("tableInfo");
            }

            this._mappingStoreDb = mappingStoreDb;

            ISqlQueryInfoBuilder<TableInfo> annotationQueryBuilder = new AnnotationQueryBuilder();
            this._annotationSqlQueryInfo = annotationQueryBuilder.Build(tableInfo);

            this._annotationCommandBuilder = new AnnotationCommandBuilder(this._mappingStoreDb);
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArtefactSqlQuery"/> class.
 /// </summary>
 /// <param name="tableInfo">
 /// The table Info.
 /// </param>
 /// <param name="maintainableRef">
 /// The maintainable reference which may contain ID, AGENCY ID and/or VERSION
 /// </param>
 public ArtefactSqlQuery(TableInfo tableInfo, IMaintainableRefObject maintainableRef)
     : this(_artefactSqlBuilder.Build(tableInfo), maintainableRef)
 {
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArtefactSqlQuery"/> class.
 /// </summary>
 /// <param name="tableInfo">
 /// The table Info.
 /// </param>
 /// <param name="maintainableRef">
 /// The maintainable reference which may contain ID, AGENCY ID and/or VERSION
 /// </param>
 public ArtefactSqlQuery(TableInfo tableInfo, IMaintainableRefObject maintainableRef)
     : this(_artefactSqlBuilder.Build(tableInfo), maintainableRef)
 {
 }