mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
1st working version in clean arch
WIP Parent group mapping issues
This commit is contained in:
@@ -1,19 +1,9 @@
|
||||
using AutoMapper;
|
||||
using ModernKeePass.Application.Common.Mappings;
|
||||
using ModernKeePass.Domain.Entities;
|
||||
|
||||
namespace ModernKeePass.Application.Cryptography.Models
|
||||
namespace ModernKeePass.Application.Parameters.Models
|
||||
{
|
||||
public class KeyDerivationVm : IMapFrom<BaseEntity>
|
||||
public class KeyDerivationVm
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
|
||||
public void Mapping(Profile profile)
|
||||
{
|
||||
profile.CreateMap<BaseEntity, CipherVm>()
|
||||
.ForMember(d => d.Id, opts => opts.MapFrom(s => s.Id))
|
||||
.ForMember(d => d.Name, opts => opts.MapFrom(s => s.Name));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user