mirror of
https://github.com/dotnetcore/Util.git
synced 2026-10-22 07:06:20 +08:00
19 lines
631 B
C#
19 lines
631 B
C#
using AutoMapper;
|
|
using Util.ObjectMapping.AutoMapper.Tests.Samples;
|
|
|
|
namespace Util.ObjectMapping.AutoMapper.Tests.Configs {
|
|
/// <summary>
|
|
/// AutoMapper测试配置 - 该配置通过启动器扫描注册
|
|
/// </summary>
|
|
public class TestAutoMapperConfig : IAutoMapperConfig {
|
|
/// <summary>
|
|
/// 配置映射
|
|
/// </summary>
|
|
/// <param name="expression">配置映射表达式</param>
|
|
public void Config( IMapperConfigurationExpression expression ) {
|
|
expression.CreateMap<Sample, Sample2>();
|
|
expression.CreateMap<Sample, Sample3>();
|
|
}
|
|
}
|
|
}
|