Open abhilashca opened 2 years ago
@valfrid-ly I have gone through the test case explaining reference map. However, I am unable to make it working. Do you have any thoughts on why it's not working?
Sorry for the delay @abhilashca , you need to also create a map to the User class, so it'll find the table.
Please test it and follow up with me.
Thank you @valfrid-ly. Much appreciated for the reply. Let me try the same and will keep you posted.
Hi again, I'm having trouble comprehending what needs to be done. Is there any way you have time to provide a fleshed-out example? I am also attempting to accomplish joins but to no avail.. Is the OP's first Mapper correct?
If so, then the second mapper could be like so:
Table("UserInstance")
AutoMap();
My example has explicit properties but the references don't resolve. If I do var mapper = await DapperAsyncExtensions.GetMap<User>();
mapper.References
is empty.
Hello,
I integrated Dapper.Extensions into an existing project recently. And, I was trying to map data of the child item via
ReferenceMap
. For some reason, it is not mapping as expected. I have gone through the test case provided but was unable to make it working.Here is how my code snippet looks like:
When I load group member collection,
UserInstance
is always returningnull
.Any idea what I am missing here? Any help will be appreciated.
Thank you.