mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
20 lines
531 B
C#
20 lines
531 B
C#
![]() |
using AutoMapper;
|
|||
|
using ModernKeePass.Application.Common.Mappings;
|
|||
|
using ModernKeePass.Domain.Entities;
|
|||
|
|
|||
|
namespace ModernKeePass.Application.Entry.Models
|
|||
|
{
|
|||
|
public class FieldVm: IMapFrom<FieldEntity>
|
|||
|
{
|
|||
|
public string Name { get; set; }
|
|||
|
public string Value { get; set; }
|
|||
|
public bool IsProtected { get; set; }
|
|||
|
|
|||
|
public override string ToString() => Value;
|
|||
|
|
|||
|
public void Mapping(Profile profile)
|
|||
|
{
|
|||
|
profile.CreateMap<FieldEntity, FieldVm>();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|