Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InMemoryContext needs to populate back references #61

Closed
trayburn opened this issue Apr 16, 2014 · 3 comments
Closed

InMemoryContext needs to populate back references #61

trayburn opened this issue Apr 16, 2014 · 3 comments
Labels

Comments

@trayburn
Copy link
Member

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);
@trayburn trayburn added the bug label Apr 16, 2014
@HwyFwkCI
Copy link

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

@DevlinLiles
Copy link
Member

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

@DevlinLiles
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants