Пример #1
0
        public Logger(LogDatabaseTypes types)
        {
            //Choose the DAL type
            switch (types)
            {
            case LogDatabaseTypes.SqlServer:
                _dal = new SqlServer();
                break;

            case LogDatabaseTypes.WindowsEventLog:
                _dal = new WindowsEventLog();
                break;

            default:
                throw new Exception("LogDatabaseType Not Found");
            }
        }
Пример #2
0
 public Logger()
 {
     //Defaults to sqlserver for now...
     _dal = new SqlServer();
 }