0

I'm fairly new to C# and SQL Server, and I'm attempting to map some query results to an object with 3 layers of class hierarchy. I've made it work before, and it's actually working now, but not the way that I thought it would. Here, have some screenshots:

This works: https://i.stack.imgur.com/5Cjhe.png

This doesn't work: https://i.stack.imgur.com/LGZw1.png

Something that isn't clear from the screenshots is that the questions were mapping fine, it's the answers that weren't being assigned. It's a fairly small difference (and as I said it does work now), but I'd like to know if there's a way I can make Query.ReturnsSingle() map the answer children.

1 Answer 1

0

I think there was a bug with singles and multiple layers of objects. It should be fixed now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.