Пример #1
0
        public Database()
        {
            //string Nijhum = @"LAPTOP-2U5ORHDR\SQLEXPRESS1;Database=Project;User Id=sa;Password=database;";
            string        Rabby = @"Server=RABBY-PC\SQLEXPRESS;Database=Project;User Id=sa;Password=1234;";
            SqlConnection conn  = new SqlConnection(Rabby);

            Admins      = new Admins(conn);
            Customers   = new Customers(conn);
            Employees   = new Employees(conn);
            Restaurants = new Restaurants(conn);
        }
Пример #2
0
        public Database()
        {
            string        connectionString = @"Server=LAPTOP-LSE8ACET\SQL_SERVER;Database=TransportReservation;User Id=sa;Password=12345;";
            SqlConnection conn             = new SqlConnection(connectionString);

            Authentication = new Authentication(conn);
            Managers       = new Managers(conn);
            Sellers        = new Sellers(conn);
            Tickets        = new Tickets(conn);
            Customers      = new Customers(conn);
            Buses          = new Buses(conn);
            Admins         = new Admins(conn);
            Reservations   = new Reservations(conn);
        }
Пример #3
0
        public Database()
        {
            // string Nijhum = @"Server=LAPTOP-2U5ORHDR\SQLEXPRESS1;Database=Project;User Id=sa;Password=database;";
            string Rabby = @"Server=RABBY-PC\SQLEXPRESS;Database=Project;User Id=sa;Password=1234;";
            // string Maliha = @"Server=103.148.99.54\SQLEXPRESS;Database=Project;User Id=sa;Password=78787878ml.;";
            SqlConnection conn = new SqlConnection(Rabby);


            Admins      = new Admins(conn);
            Customers   = new Customers(conn);
            Employees   = new Employees(conn);
            Restaurants = new Restaurants(conn);
            Foods       = new Foods(conn);
            Orders      = new Orders(conn);
            Discouts    = new Discouts(conn);
            Reviews     = new Reviews(conn);
        }