mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-16 14:36:37 +08:00
35 lines
697 B
C#
35 lines
697 B
C#
using NET.AutoWebApi.Setting;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Yi.Framework.Ddd.Services;
|
|
|
|
namespace Yi.RBAC.Application
|
|
{
|
|
class Test01
|
|
{
|
|
|
|
public string Name { get; set; }
|
|
public bool State { get; set; }
|
|
}
|
|
|
|
class Test02
|
|
{
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
public class TestService : ApplicationService, IAutoApiService
|
|
{
|
|
|
|
public void Test()
|
|
{
|
|
var t001 = new Test02 { Name = "121233" };
|
|
var t002 = new Test01 { Name = "123", State = true };
|
|
|
|
var entity= _mapper.Map(t001, t002);
|
|
}
|
|
}
|
|
}
|