public HomeController()
        {
            //constructor for connection strings
            string connectionString = ConfigurationManager.ConnectionStrings["datasource"].ConnectionString;

            _invoiceDataAccess = new InvoiceDAO(connectionString);
            _boatDataAccess    = new BoatDAO(connectionString);
        }
示例#2
0
        public BoatController()
        {
            string connectionString = ConfigurationManager.ConnectionStrings["datasource"].ConnectionString;

            _boatDataAccess = new BoatDAO(connectionString);
        }