Пример #1
0
        public static void Update(int Matr, Participation NewP)
        {
            ProgramMain.bdconx.Open();
            string     s   = "Update Participation Set Matr=" + NewP.Matr + ",CodeP=" + NewP.CodeP + ",Fonction=" + NewP.Fonction + " where Matr=" + Matr + ";";
            SqlCommand cmd = new SqlCommand(s, ProgramMain.bdconx);

            ProgramMain.bdconx.Close();
        }
Пример #2
0
        public static void Delete(Participation P)
        {
            ProgramMain.bdconx.Open();
            string     s   = "Delete From Participation where Matr=" + P.Matr + ";";
            SqlCommand cmd = new SqlCommand(s, ProgramMain.bdconx);

            ProgramMain.bdconx.Close();
        }
Пример #3
0
        public static void Insert(Participation P)
        {
            ProgramMain.bdconx.Open();
            string     s   = "Insert Into Participation Values (" + P.Matr + "," + P.CodeP + ",'" + P.Fonction + "')";
            SqlCommand cmd = new SqlCommand(s, ProgramMain.bdconx);

            ProgramMain.bdconx.Close();
        }