public void Delete() { using (SlickCMSDataContext db = SlickCMSDataContext.Create()) { db.ExecuteCommand("Delete From Links Where LinkID = {0}", this.LinkID); } }
public void Delete() { SlickCMSDataContext dc = SlickCMSDataContext.Create(); dc.ExecuteCommand("Delete From Documents Where DocumentID = {0}", this.DocumentID); dc.Dispose(); }