public static PostEntity FromIPost(IPost post) { var p = new PostEntity(); post.CopyTo(p); return(p); }
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); }
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); }