示例#1
0
        private static int importToTemp(SpiderArticle art, SpiderImport item, ContentSection section, ContentApp app)
        {
            ContentTempPost post = new ContentTempPost();

            post.Creator   = item.Creator;
            post.OwnerId   = app.OwnerId;
            post.OwnerType = app.OwnerType;
            post.AppId     = app.Id;
            post.SectionId = section.Id;

            post.Title      = art.Title;
            post.SourceLink = art.Url;
            post.Content    = art.Body;

            post.insert();

            return(post.Id);
        }
 public Result Insert(ContentTempPost post)
 {
     return(post.insert());
 }
示例#3
0
        private static int importToTemp( SpiderArticle art, SpiderImport item, ContentSection section, ContentApp app )
        {
            ContentTempPost post = new ContentTempPost();
            post.Creator = item.Creator;
            post.OwnerId = app.OwnerId;
            post.OwnerType = app.OwnerType;
            post.AppId = app.Id;
            post.SectionId = section.Id;

            post.Title = art.Title;
            post.SourceLink = art.Url;
            post.Content = art.Body;

            post.insert();

            return post.Id;
        }
 public Result Insert( ContentTempPost post )
 {
     return post.insert();
 }