Use file scoped namepace
This commit is contained in:
@@ -1,19 +1,18 @@
|
||||
using AutoMapper;
|
||||
|
||||
namespace GerstITS.Examples.Logic.Example
|
||||
namespace GerstITS.Examples.Logic.Example;
|
||||
|
||||
internal sealed class IntegerMapping : Profile
|
||||
{
|
||||
internal sealed class IntegerMapping : Profile
|
||||
#region Construtcors
|
||||
|
||||
public IntegerMapping()
|
||||
{
|
||||
#region Construtcors
|
||||
|
||||
public IntegerMapping()
|
||||
{
|
||||
CreateMap<int, Example>()
|
||||
.ForMember(x => x.FirstName, m => m.MapFrom((s, _) => $"First Name {s}"))
|
||||
.ForMember(x => x.LastName, m => m.MapFrom((s, _) => $"Last Name {s}"))
|
||||
.ForMember(x => x.Description, m => m.MapFrom((s, _) => $"Useful description for id '{s}'"));
|
||||
}
|
||||
|
||||
#endregion
|
||||
CreateMap<int, Example>()
|
||||
.ForMember(x => x.FirstName, m => m.MapFrom((s, _) => $"First Name {s}"))
|
||||
.ForMember(x => x.LastName, m => m.MapFrom((s, _) => $"Last Name {s}"))
|
||||
.ForMember(x => x.Description, m => m.MapFrom((s, _) => $"Useful description for id '{s}'"));
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user