Example #1
0
        public void Delete(string Name)
        {
            Uslugi pac = db13.Uslugi.Where(c => c.Name == Name).FirstOrDefault();

            db13.Uslugi.DeleteOnSubmit(pac);
            db13.SubmitChanges();
        }
Example #2
0
        public void Edit(int ID, string Name, int Cena, string Ed)
        {
            Uslugi pac = db13.Uslugi.Where(c => c.ID == ID).FirstOrDefault();

            pac.Name = Name;
            pac.Cena = Cena;
            pac.Ed   = Ed;
            db13.SubmitChanges();
        }
Example #3
0
        public void ADD(string Name, int Cena, string Ed)
        {
            Uslugi pac = new Uslugi();

            pac.Name = Name;
            pac.Cena = Cena;
            pac.Ed   = Ed;
            db13.Uslugi.InsertOnSubmit(pac);
            db13.SubmitChanges();
        }