General.Web/Profiles/NoteProfile.cs

(完整代码) 510B

using System;
using AutoMapper;
using General.Entities.Models;
using General.Framework.Admin;

namespace General.Mvc.Profiles
{
    public class NoteProfile : Profile
    {
        public NoteProfile()
        {
            CreateMap<tc_note, AdminNoteModel>()
              .ForMember(dest => dest.time,
              opt => opt.MapFrom(src => src.intime.ToString("yyyy-MM-dd HH:mm"))).
              ForMember(dest => dest.content,
              opt => opt.MapFrom(src => src.message));
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。