Ejemplo n.º 1
0
        public static ForumItemPrimitive GetPrimitive(this ForumItem entity)
        {
            ForumItemPrimitive primitive = new ForumItemPrimitive();

                primitive.Id = entity.Id;

                primitive.Article_Id = entity.Article_Id;

                primitive.Text = entity.Text;

                primitive.User_Id = entity.User_Id;

                primitive.CreateTime = entity.CreateTime;

                primitive.DeleteTime = entity.DeleteTime;

                return primitive;
        }
Ejemplo n.º 2
0
        public static ForumItemPrimitive GetPrimitiveCopy(this ForumItemPrimitive primitiveToCopy)
        {
            if (primitiveToCopy == null) return null;

                ForumItemPrimitive primitive = new ForumItemPrimitive();

                primitive.Id = primitiveToCopy.Id;

                primitive.Article_Id = primitiveToCopy.Article_Id;

                primitive.Text = primitiveToCopy.Text;

                primitive.User_Id = primitiveToCopy.User_Id;

                primitive.CreateTime = primitiveToCopy.CreateTime;

                primitive.DeleteTime = primitiveToCopy.DeleteTime;

                return primitive;
        }
Ejemplo n.º 3
0
 public void DeleteForumItem(ForumItemPrimitive forumItemPrimitive)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
 public ForumItemPrimitive CreateOrUpdateForumItem(ForumItemPrimitive forumItemPrimitive, ArticlePrimitive articlePrimitive)
 {
     throw new NotImplementedException();
 }