V1版本
This commit is contained in:
23
CapMachine.Wpf/MapperProfile/UserProfile.cs
Normal file
23
CapMachine.Wpf/MapperProfile/UserProfile.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using AutoMapper;
|
||||
using CapMachine.Model;
|
||||
using CapMachine.Wpf.Dtos;
|
||||
using CapMachine.Wpf.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Wpf.MapperProfile
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户 的配置
|
||||
/// </summary>
|
||||
public class UserProfile:Profile
|
||||
{
|
||||
public UserProfile()
|
||||
{
|
||||
CreateMap<UserDto, User>().ReverseMap();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user