Skip to content

Can I map the first child in a collection efficiently with AutoMapper & EF Core? #3943

Answered by lbargaoanu
stevendarby asked this question in Q&A
Discussion options

You must be logged in to vote

Check the execution plan. That looks good to me. You can set DoNotAllowNull for FirstAddress, but this is really an EF Core question.
You should also check the SQL execution plan. Perhaps the optimizer can handle that query better than it looks.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@stevendarby
Comment options

@lbargaoanu
Comment options

@stevendarby
Comment options

@lbargaoanu
Comment options

Answer selected by stevendarby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants