protected virtual string GetConnectionString(DatabaseMode mode) { string connectionName = BaseDao.GetConnectionName(_dataBaseName); if (mode != DatabaseMode.All) { connectionName = string.Format("{0}_{1}", mode, connectionName); } return(ConfigurationManager.ConnectionStrings[connectionName].ConnectionString); }