Esempio n. 1
0
        public void InsertToBase()
        {
            danie d = new danie
            {
                Aftor  = "123",
                God    = 1234,
                Gorod  = "qwe",
                Ilustr = "2",
                Mesto  = "qwe"
            };

            dcont.danies.InsertOnSubmit(d);
            dcont.SubmitChanges();
        }
Esempio n. 2
0
        void deleteRec(int IDRec)
        {
            var res = danieTab.Where(wh => wh.ID == IDRec).SingleOrDefault();

            context.danies.DeleteOnSubmit(res);
            context.SubmitChanges();
        }