Skip to content

Commit d04f257

Browse files
authored
Update README.md
1 parent 6a34861 commit d04f257

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

README.md

+1-14
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,7 @@
22

33
- **Working** (CTRL-F5) Kestrel Hosted Blazor 5.x WASM Sample Project (with Identity) for gRPC with related (EF Core/SQLite) data.
44

5-
Many to many `.Include` results in a stack overflow, is this a reference loop?
6-
7-
(part of) /Server/Services/[BlogService.cs](https://github.com/JeepNL/BlazorWasmGrpcBlog/blob/master/BlazorWasmGrpcBlog/Server/Services/BlogService.cs)
8-
9-
var posts = new Posts();
10-
var allPosts = await dbContext.Posts
11-
.Where(ps => ps.PostStat == PostStatus.Published)
12-
.Include(pa => pa.PostAuthor)
13-
.Include(pe => pe.PostExt)
14-
//.Include(tipd => tipd.TagsInPostData) // TODO: [ERROR] / doesn't work: results in a stack overflow.
15-
.OrderByDescending(dc => dc.DateCreated)
16-
.ToListAsync();
17-
posts.PostsData.AddRange(allPosts);
18-
return posts;
5+
Many-to-Many working now, see: https://github.com/grpc/grpc-dotnet/issues/1177#issuecomment-763910215
196

207
Adding data to join table solved, see: https://github.com/dotnet/efcore/issues/23703#issuecomment-758801618
218

0 commit comments

Comments
 (0)