예제 #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();
 }