Б[
у меня есть Х, фабрика создает свеженький Х2, дальше магия и мне нужно получить два одиннаковых обьекта
Size: a a a
Б[
P
MN
Б[
Б[
Б[
Б[
MN
VB
public class UserModel
{
public string FirstName { get; set; }
public string LastName { get; set; }
public RegistrationState RegistrationState { get; set; }
}
public class UserEntity
{
public Guid Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public RegistrationStateDb RegistrationState { get; set; }
}
Я не понимаю, как правильно замапить enum`ыMN
Б[
ГЛ
VB
CreateMap<UserModel, UserEntity>()При условии, что enum`ы полностью идентичные?
.ForMember(x => x.RegistrationState,
opt => opt.MapFrom(x => x.RegistrationState))
.ReverseMap();
ГЛ
ГЛ
МЕ
VB
VB
AK