Could I see an example of how I can get Automapper's CreateMap with a collection property based on EntitySet please? Any time I try to map TO these properties, it bombs out because the EntitySet is null and has no public constructor. I'm assuming other people are getting around this, what am I doing wrong?

asked Oct 03 '13 at 16:06

Dave%20Jellison%20Fabnu's gravatar image

Dave Jellison Fabnu

One Answer:

Hey Dave Jellison Fabnu,

Please, check this answer. It is actually about EF, but the approach is right for any ORM.

answered Oct 03 '13 at 16:36

Dmitri%20Maximov's gravatar image

Dmitri Maximov


Perfect Dmitri, thank you. This provided the intel I was missing.

(Oct 04 '13 at 12:15) Dave Jellison Fabnu Dave%20Jellison%20Fabnu's gravatar image

You are very welcome

(Oct 04 '13 at 12:39) Dmitri Maximov Dmitri%20Maximov's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA