Blog.Logic.ObjectMapper.PostLikeMapper.ToEntity C# (CSharp) Méthode

ToEntity() public static méthode

public static ToEntity ( PostLike postLike ) : PostLike
postLike PostLike
Résultat Blog.DataAccess.Database.Entities.Objects.PostLike
        public static Db.PostLike ToEntity(PostLike postLike)
        {
            return postLike == null ? null :
                new Db.PostLike
                {
                    PostId = postLike.PostId,
                    PostLikeId = postLike.PostLikeId,
                    UserId = postLike.UserId,
                    CreatedBy = postLike.CreatedBy,
                    CreatedDate = postLike.CreatedDate,
                    ModifiedBy = postLike.ModifiedBy,
                    ModifiedDate = postLike.ModifiedDate
                };
        }
    }
PostLikeMapper