static void Main(string[] args) { // Get the connection string from the appsettings.json file IConfigurationBuilder builder = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true); IConfigurationRoot configuration = builder.Build(); string connectionString = configuration.GetConnectionString("Project"); IParkDAO parkDAO = new ParkSqlDAO(connectionString); ICampgroundDAO campgroundDAO = new CampgroundSqlDAO(connectionString); ISiteDAO siteDAO = new SiteSqlDAO(connectionString); IReservationDAO reservationDAO = new ReservationSqlDAO(connectionString); ISearchDAO searchDAO = new SearchSqlDAO(connectionString); CLI cLI = new CLI(parkDAO, campgroundDAO, siteDAO, reservationDAO, searchDAO); cLI.MainMenu(); }
static void Main(string[] args) { CLI.MainMenu(); }