Hi,
I am using EF Code First with fluent mapping. When I'm executing query which contains 'Include' clause, related entities are not retrieved.
Please find attached a trivial application (package libraries removed to be able to attach the solution).The solution includes only three entities: User, Role, UserRole (many to many relational table).
I think, I made everything what is necessary to get related entities (according to the documentation), but after executing query (MainPage.xaml.cs):
var usersQuery = appTestEntityManager
.Users
.Include(u => u.UserRoles);
var result = await appTestEntityManager.ExecuteQueryAsync(usersQuery);
the 'result' variable does not contains related 'UserRoles'.
Database is properly created and filled out by sample data during executing query. Everything seems to be ok ... I have no idea what is wrong.
Thanks in advance for any advice.
AppTest.zip