InMemoryContext needs to populate back references
trayburn opened this issue · comments
Tim Rayburn commented
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);
HwyFwkCI commented
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
Devlin Liles commented
.. I am working on this one. *repeats the serenity prayer *
Devlin Liles commented
Just checked in on Release-6-0. Pending review before closing