https://github.com/jeepnl/blazorwasmgrpcblog
Kestrel Hosted Blazor 5.x WASM (w. Identity) Sample Project for gRPC with related (EF Core/SQLite) data. One to one, One to Many, Many to Many
https://github.com/jeepnl/blazorwasmgrpcblog
blazor efcore grpc sqlite wasm
Last synced: 3 months ago
JSON representation
Kestrel Hosted Blazor 5.x WASM (w. Identity) Sample Project for gRPC with related (EF Core/SQLite) data. One to one, One to Many, Many to Many
- Host: GitHub
- URL: https://github.com/jeepnl/blazorwasmgrpcblog
- Owner: JeepNL
- License: mit
- Created: 2020-12-24T13:59:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-22T12:24:51.000Z (over 5 years ago)
- Last Synced: 2025-01-28T03:15:14.857Z (over 1 year ago)
- Topics: blazor, efcore, grpc, sqlite, wasm
- Language: C#
- Homepage:
- Size: 306 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Blazor Wasm gRPC Blog Sample
- **Working** (CTRL-F5) Kestrel Hosted Blazor 5.x WASM Sample Project (with Identity) for gRPC with related (EF Core/SQLite) data.
Many-to-Many working now, see: https://github.com/grpc/grpc-dotnet/issues/1177#issuecomment-763910215
Adding data to join table solved, see: https://github.com/dotnet/efcore/issues/23703#issuecomment-758801618
(part of) /Server/Data/[ApplicationDbContext.cs](https://github.com/JeepNL/BlazorWasmGrpcBlog/blob/master/BlazorWasmGrpcBlog/Server/Data/ApplicationDbContext.cs)
modelBuilder.Entity().Navigation(e => e.TagsInPostData).HasField("tagsInPostData_");
modelBuilder.Entity().Navigation(e => e.PostsInTagData).HasField("postsInTagData_");
Tip: Watch: On .NET Deep Dive into Many-to-Many: [A Tour of EF Core 5.0 pt. 2](https://channel9.msdn.com/Shows/On-NET/Deep-Dive-into-Many-to-Many-A-Tour-of-EF-Core-50-pt-2)
----
Quick Links to important files
- /Shared/Protos/[blog.proto](https://github.com/JeepNL/BlazorWasmGrpcBlog/blob/master/BlazorWasmGrpcBlog/Shared/Protos/blog.proto)
- /Server/Data/[ApplicationDbContext.cs](https://github.com/JeepNL/BlazorWasmGrpcBlog/blob/master/BlazorWasmGrpcBlog/Server/Data/ApplicationDbContext.cs)
- /Server/Data/[SeedData.cs](https://github.com/JeepNL/BlazorWasmGrpcBlog/blob/master/BlazorWasmGrpcBlog/Server/Data/SeedData.cs)
- /Server/Services/[BlogService.cs](https://github.com/JeepNL/BlazorWasmGrpcBlog/blob/master/BlazorWasmGrpcBlog/Server/Services/BlogService.cs)