Quantcast
Channel: URF - Unit of Work & (extensible/generic) Repositories Framework
Viewing all articles
Browse latest Browse all 1539

New Post: Not able to get Deep Load working

$
0
0
Hi Dlharrison,

Please use integration test for this, where you actually setup a database for your test to run against and destroy the database once they are completed. The mocks run against in-memory Observable collections and are not related as they would be in SQL Server, again they are mocked.

A Find(id) does not return the entire object graph, you will need to do Repository<Product>().Query(t => t.ProductId == 2).Include(t => t.Supplier).Select().First();

Viewing all articles
Browse latest Browse all 1539

Trending Articles