Questions tagged [automapper-11]

17 questions
-1
votes
1 answer

Automapper and Nullable Reference Type raise "needs to have a constructor with 0 args or only optional args"

Scenario I can't map a class with string and nullable reference type enabled #r "nuget:AutoFixture/4.17.0" #r "nuget:AutoMapper/11.0.1" using AutoFixture; using AutoMapper; class Song { public int Id { get; set; } public string Title {…
Max
  • 6,821
  • 3
  • 43
  • 59
-2
votes
1 answer

Unflatted with automapper

Let's say I have an EF Core model with these three properties: public int Id { get; set; } public string? ApplicationName { get; set; } public string? ApplicationVersion { get; set; } and in the automapper output, after calling ProjectTo I want it…
Gargoyle
  • 9,590
  • 16
  • 80
  • 145
1
2