public async Task Load() { await Blogs.Load(); CurrentBlog = AllBlogs[0]; CurrentEntry = CurrentBlog.Entries[0]; }
private void LoadContext() { var initBlog = new Blog() { BlogId = 1, Url = "myPost.com" }; Add(initBlog); Add(new Post() { Title = "MyPost", Content = "DataVirtualMock", PostId = 1, Blog = initBlog, BlogId = initBlog.BlogId }); SaveChanges(); Blogs.Load(); Posts.Load(); }