public Database()
        {
            string        conn       = @"Server=RABBY-PC\SQLEXPRESS;Database=CloudShop;User Id=sa;Password=1234;";
            SqlConnection connection = new SqlConnection(conn);


            Admins    = new Admins(connection);
            Employees = new Employees(connection);
            Customers = new Customers(connection);
            Shops     = new Shops(connection);
            Products  = new Products(connection);
            Orders    = new Orders(connection);
        }
Exemple #2
0
        public Database()
        {
            string        conn       = @"Server=DESKTOP-DGBB7FB\SQLEXPRESS;Database=CloudShop;Integrated Security=true;";
            SqlConnection connection = new SqlConnection(conn);


            Admins    = new Admins(connection);
            Employees = new Employees(connection);
            Customers = new Customers(connection);
            Shops     = new Shops(connection);
            Products  = new Products(connection);
            Orders    = new Orders(connection);
        }