Beispiel #1
0
        public void Delete(int ID)
        {
            Vrem pac = db15.Vrem.Where(c => c.ID == ID).FirstOrDefault();

            db15.Vrem.DeleteOnSubmit(pac);
            db15.SubmitChanges();
        }
Beispiel #2
0
        public void Edit(int ID, string Den, string VremN, string VremK)
        {
            Vrem pac = db15.Vrem.Where(c => c.ID == ID).FirstOrDefault();

            pac.Den   = Den;
            pac.VremN = VremN;
            pac.VremK = VremK;
            db15.SubmitChanges();
        }
Beispiel #3
0
        public void ADD(string Den, string VremN, string VremK)
        {
            Vrem pac = new Vrem();

            pac.Den   = Den;
            pac.VremN = VremN;
            pac.VremK = VremK;
            db15.Vrem.InsertOnSubmit(pac);
            db15.SubmitChanges();
        }