Exemple #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;
 }
        public static IDepartment CreateDepartment()
        {
            IDepartment result = null;

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

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