Dapper.EntityFramework.Extensions icon indicating copy to clipboard operation
Dapper.EntityFramework.Extensions copied to clipboard

Include entities

Open hanc2006 opened this issue 8 years ago • 0 comments

Hi, I try to perform a simple query with this extension but I cannot load the related entities in my query

var bookings = uow.Context.BookingRequests
                   .Include(x => x.PriceRange)
                   .Where(x => x.IsExecuted == true)
                   .ToDapper();

The result is a IEnumerable of BookingRequests with the Id of PriceRange entity filled but not the related entity PriceRange.

Is correct this behavior?

hanc2006 avatar Aug 06 '16 21:08 hanc2006