Я использую AutoMapper v9 и wi sh, чтобы добавить в мои свойства DTO постфикс Dto
.
В своем профиле я добавил:
RecognizeDestinationPostfixes("Dto");
Я проверяю свое сопоставление с помощью config.AssertConfigurationIsValid();
, и сразу же оно выдает с помощью
Unmapped properties:
AccountConnectionIdDto
CreatedDateDto
ModifiedDateDto
IdentityIdDto
AccountIdDto
Вот как выглядит мой DTO:
public class AccountConnectionDto
{
public int AccountConnectionIdDto { get; set; }
public DateTime CreatedDateDto { get; set; }
public DateTime ModifiedDateDto { get; set; }
public Guid IdentityIdDto { get; set; }
public int AccountIdDto { get; set; }
public AccountDto AccountDto { get; set; }
}
Удаление Dto
из названий моей модели и все работает Я чувствую, что postifx не распознается или не используется вообще, я делаю это правильно?