Exemplo n.º 1
0
 public static IDepartment CreateDepartment()
 {
     IDepartment result = null;
     switch (db)
     {
         case "Sqlserver":
             result = new SqlserverDepartment();
             break;
         case "Access":
             result = new AccessDepartment();
             break;
     }
     return result;
 }
Exemplo n.º 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);
        }