Exemplo n.º 1
0
 public static void DeleteClient(Content content)
 {
     var ctx = new RepGenDataContext();
     ctx.Contents.Attach(content);
     ctx.Contents.DeleteOnSubmit(content);
     ctx.SubmitChanges();
 }
Exemplo n.º 2
0
 public static void UpdateContent(Content content, Content original_content)
 {
     var ctx = new RepGenDataContext();
     ctx.Contents.Attach(content, original_content);
     ctx.SubmitChanges();
 }
Exemplo n.º 3
0
        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);
        }