Exemplo n.º 1
0
        public static PostEntity FromIPost(IPost post)
        {
            var p = new PostEntity();

            post.CopyTo(p);
            return(p);
        }
Exemplo n.º 2
0
        public static PostEntity FromIPost(IPost post)
        {
            var p = new PostEntity();

            p.Author     = post.Author;
            p.BlogId     = post.BlogId;
            p.Categories = post.Categories;
            //p.Comments = post.Comments;
            p.Content         = post.Content;
            p.ContentType     = post.ContentType;
            p.Id              = post.Id;
            p.IsPublished     = post.IsPublished;
            p.LastModified    = post.LastModified;
            p.MetaDescription = post.MetaDescription;
            p.PubDate         = post.PubDate;
            p.Slug            = post.Slug;
            p.Title           = post.Title;
            p.CorrelationKey  = post.CorrelationKey;
            p.ImageUrl        = post.ImageUrl;
            p.ThumbnailUrl    = post.ThumbnailUrl;
            p.IsFeatured      = post.IsFeatured;
            p.TeaserOverride  = post.TeaserOverride;
            p.SuppressTeaser  = post.SuppressTeaser;
            return(p);
        }
Exemplo n.º 3
0
        public static PostEntity FromIPost(IPost post)
        {
            var p = new PostEntity();

            p.Author          = post.Author;
            p.BlogId          = post.BlogId;
            p.Categories      = post.Categories;
            p.Comments        = post.Comments;
            p.Content         = post.Content;
            p.Id              = post.Id;
            p.IsPublished     = post.IsPublished;
            p.LastModified    = post.LastModified;
            p.MetaDescription = post.MetaDescription;
            p.PubDate         = post.PubDate;
            p.Slug            = post.Slug;
            p.Title           = post.Title;

            return(p);
        }