public BlogMLCategoryReference Add(string categoryID)
            {
                BlogMLCategoryReference item = new BlogMLCategoryReference();

                item.Ref = categoryID;
                base.Add(item);
                return(item);
            }
        public void Process(BlogMLPost postml)
        {
            Log.DebugFormat("Setting up category references on post {0}", postml.ID);

            using (var query = new OxiteReader("SELECT * FROM oxite_Post A, oxite_PostTagRelationship B WHERE A.PostID=B.PostID AND A.PostID='" + postml.ID + "'"))
            {
                var tagRefs = query.Execute();

                foreach(var tag in tagRefs)
                {
                    var commentRef = new BlogMLCategoryReference
                    {
                        Ref = tag.TagID.ToString()
                    };

                    postml.Categories.Add(commentRef);
                }
            }
        }
Beispiel #3
0
 public BlogMLCategoryReference Add(string categoryID)
 {
     BlogMLCategoryReference item = new BlogMLCategoryReference();
     item.Ref = categoryID;
     base.Add(item);
     return item;
 }
Beispiel #4
0
 public void Add(BlogMLCategoryReference value)
 {
     base.Add(value);
 }
 public void Add(BlogMLCategoryReference value)
 {
     base.Add(value);
 }