Exemple #1
0
        IAlertsDal PrepareAlertsDal()
        {
            IAlertsDal           dal        = new AlertsDAL.AlertsDALMSSQL();
            IAlertsDalInitParams initParams = dal.CreateInitParams();

            initParams.Parameters["ConnectionStringAlerts"] = ConfigurationManager.AppSettings["ConnectionStringAlerts"];

            dal.Init(initParams);

            return(dal);
        }
        private void InitDAL()
        {
            string dalType = ConfigurationManager.AppSettings["AlertsDalType"];

            _dal = _compContainer.GetExport <IAlertsDal>(dalType).Value;

            IAlertsDalInitParams initParams = _dal.CreateInitParams();

            initParams.Parameters["ConnectionStringAlerts"] = ConfigurationManager.AppSettings["ConnectionStringAlerts"];
            _dal.Init(initParams);
        }
Exemple #3
0
 public void Init(IAlertsDalInitParams initParams)
 {
     _dalParams = initParams;
 }