Blog.Logic.ObjectMapper.CommentLikeMapper.ToEntity C# (CSharp) Method

ToEntity() public static method

public static ToEntity ( CommentLike commentLike ) : CommentLike
commentLike CommentLike
return Blog.DataAccess.Database.Entities.Objects.CommentLike
        public static Db.CommentLike ToEntity(CommentLike commentLike)
        {
            return commentLike == null ? null :
                new Db.CommentLike
                {
                    CommentId = commentLike.CommentId,
                    CommentLikeId = commentLike.CommentLikeId,
                    User = null,
                    UserId = commentLike.UserId,
                    CreatedBy = commentLike.CreatedBy,
                    CreatedDate = commentLike.CreatedDate,
                    ModifiedBy = commentLike.ModifiedBy,
                    ModifiedDate = commentLike.ModifiedDate
                };
        }
    }
CommentLikeMapper