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; }
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; }
public void DeleteForumItem(ForumItemPrimitive forumItemPrimitive) { throw new NotImplementedException(); }
public ForumItemPrimitive CreateOrUpdateForumItem(ForumItemPrimitive forumItemPrimitive, ArticlePrimitive articlePrimitive) { throw new NotImplementedException(); }