Exemple #1
0
        private static ICatalogDAO GetCatalogDAO()
        {
            BaseSqlDAO dao = (BaseSqlDAO)FactoryUtils.GetDAO(ConfigurationManager.AppSettings["ICatalogDAO"], "");

            dao.SetQueryBuilder(DbUtils.GetQueryBuilder());

            return((ICatalogDAO)dao);
        }
Exemple #2
0
        /// <summary>
        /// Returns the Catalog data source, with the proper query QueryBuilder depending on the specified connName
        /// </summary>
        /// <param name="connName">The connection name string</param>
        /// <returns>The Catalog data source</returns>
        protected virtual ICatalogDAO GetCatalogDAO(string connName)
        {
            BaseSqlDAO dao = (BaseSqlDAO)FactoryUtils.GetDAO(ConfigurationManager.AppSettings["ICatalogDAO"], connName);

            dao.SetQueryBuilder(DbUtils.GetQueryBuilder(connName));

            return((ICatalogDAO)dao);
        }