public static IDepartment CreateDepartment()
 {
     IDepartment result = null;
     switch (db)
     {
         case "Sqlserver":
             result = new SqlserverDepartment();
             break;
         case "Access":
             result = new AccessDepartment();
             break;
     }
     return result;
 }
Beispiel #2
0
        public static IDepartment CreateDepartment()
        {
            IDepartment result = null;

            switch (db)
            {
            case "Sqlserver":
                result = new SqlserverDepartment();
                break;

            case "Access":
                result = new AccessDepartment();
                break;
            }
            return(result);
        }