Blazor-CRUD | Simple CRUD application using C # /Blazor | Frontend Framework library
kandi X-RAY | Blazor-CRUD Summary
kandi X-RAY | Blazor-CRUD Summary
A simple CRUD application using Blazor.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Blazor-CRUD
Blazor-CRUD Key Features
Blazor-CRUD Examples and Code Snippets
Community Discussions
Trending Discussions on Blazor-CRUD
QUESTION
I'm trying to create a simple Blazor client server app using EF, similar to this article.
So I've got a client, server, and common libraries, and this worked fine. But then I added the EF component to the common library, so that I could use real data from my database, instead of toy data from the demo.
I tried making them all Core 3.0, but this doesn't work because Blazor seems to require .NET Standard 2.0. Without that, I get all kinds of errors.
But then the common library can't use EF, because (if I'm reading this right) EF6 isn't supported on Standard 2.0. If I try, I again get tons of errors.
So I'm not sure, but I can't find any scenario that would allow me to share EF objects between client and server--which is a major rationale for Blazor.
Is there some other way to accomplish this?
...ANSWER
Answered 2019-May-23 at 19:41You should make the common project netstandard and use EF core (not EF 6)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Blazor-CRUD
Install the .NET Core 2.1 Preview 1 SDK
Navigate to BzHost.Server and run:
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page