private static ICatalogDAO GetCatalogDAO() { BaseSqlDAO dao = (BaseSqlDAO)FactoryUtils.GetDAO(ConfigurationManager.AppSettings["ICatalogDAO"], ""); dao.SetQueryBuilder(DbUtils.GetQueryBuilder()); return((ICatalogDAO)dao); }
/// <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); }