Exemple #1
0
        public void Delete(int ID)
        {
            Raspisanie pac = db11.Raspisanie.Where(c => c.ID == ID).FirstOrDefault();

            db11.Raspisanie.DeleteOnSubmit(pac);
            db11.SubmitChanges();
        }
Exemple #2
0
        public void Edit(int ID, int IDVrem, int IDVrach)
        {
            Raspisanie pac = db11.Raspisanie.Where(c => c.ID == ID).FirstOrDefault();

            pac.IDVrem  = IDVrem;
            pac.IDVrach = IDVrach;
            db11.SubmitChanges();
        }
Exemple #3
0
        public void ADD(int IDVrem, int IDVrach)
        {
            Raspisanie pac = new Raspisanie();

            pac.IDVrem  = IDVrem;
            pac.IDVrach = IDVrach;
            db11.Raspisanie.InsertOnSubmit(pac);
            db11.SubmitChanges();
        }