Quantcast
Channel: EntityFramework Reverse POCO Code First Generator
Viewing all articles
Browse latest Browse all 1642

Created Unassigned: FakeDB Context navigation issue [114]

$
0
0
Hi,

I am using the Fake DB context for unit testing.

The problem I am facing is that I am not able to use the navigation properties, i.e.

I have two tables ParentTable and ChildTable.
ChildTable (ParentTableId) has foreign key relation to ParentTable (Id)

When I am trying to unit test my code saying

fakeDbContext.ChildTables.Include(c => c.ParentTable).ToList() returns null even though data is populated.

Can you please help me on this.

Viewing all articles
Browse latest Browse all 1642

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>