HighwayFramework / Highway.Data

The fastest and smoothest way to great architecture

Home Page:http://hwyfwk.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InMemoryContext needs to populate back references

trayburn opened this issue · comments

If Blog has many Post and Post has required Blog.

// Arrange
var blog = new Blog();
var post = new Post { Blog = blog };
context.Add(post);

// Act
var fetchedBlog = context.AsQueryable<Blog>().First();

// Assert
fetchedBlog.Posts.Count().Should().Be(1);

Dude that is a wicked requirement!!!

Sent from my Windows Phone


From: Tim Rayburnmailto:notifications@github.com
Sent: ‎4/‎16/‎2014 12:27 PM
To: HighwayFramework/Highway.Datamailto:Highway.Data@noreply.github.com
Subject: [Highway.Data] InMemoryContext needs to populate back references (#61)

If Blog has many Post and Post has required Blog.

// Arrange
var blog = new Blog();
var post = new Post { Blog = blog };
context.Add(post);

// Act
var fetchedBlog = context.AsQueryable<Blog>().First();

// Assert
fetchedBlog.Posts.Count().Should().Be(1);

Reply to this email directly or view it on GitHub:
#61

.. I am working on this one. *repeats the serenity prayer *

Just checked in on Release-6-0. Pending review before closing