Esempio n. 1
0
 public void Delete()
 {
     using (SlickCMSDataContext db = SlickCMSDataContext.Create())
     {
         db.ExecuteCommand("Delete From Links Where LinkID = {0}", this.LinkID);
     }
 }
Esempio n. 2
0
        public void Delete()
        {
            SlickCMSDataContext dc = SlickCMSDataContext.Create();

            dc.ExecuteCommand("Delete From Documents Where DocumentID = {0}", this.DocumentID);
            dc.Dispose();
        }