public static void DeleteClient(Content content) { var ctx = new RepGenDataContext(); ctx.Contents.Attach(content); ctx.Contents.DeleteOnSubmit(content); ctx.SubmitChanges(); }
public static void UpdateContent(Content content, Content original_content) { var ctx = new RepGenDataContext(); ctx.Contents.Attach(content, original_content); ctx.SubmitChanges(); }
private void setTextNode(XmlNode root, XmlNamespaceManager nsmgr, Content content) { string contentPath = nsprefix + content.ContentID.Replace(".", nspace); XmlNode xmlnode = root.SelectSingleNode(contentPath, nsmgr); xmlnode.InnerText = content.Text.Replace("[Strategy]", Client.Strategy.Name); }