zzz projects Blazor Tutorial
Getting Started Knowledge Base
  • Getting Started
  • Knowledge Base

Blazor Tutorial - Knowledge Base (KB)

17 results for: in tag: entity-framework-core

Http GetJsonAsync returns null from server API

I am trying to create an application using Blazor and .NET Core 3 with EF Core 3. I have setup a database model and an API for users (/api/users) and browsing to this in chrome returns all of the entities in the database. My GetJson method in the Razor fi...
.net-core blazor c# entity-framework-core
asked by Adam Creed

Blazor w/ Entity Framework Core - compile error

I have the following setup but am unable to finish building as I get an obscure error related to line 439 in file ...Blazor.MonoRuntime.targets... (MSB3073)....Does this essentially mean that Entity Framework Core will in no way work with Blazor preview 6...
blazor entity-framework-core
asked by AlvinfromDiaspar

Add Model Project (EntityFramwork) to Asp.net Core 3 Project

I have 3 projects in my Solution like below:...ModelProject (EntityFramework)...ProjectA (ASP.NET MVC)...ProjectB (ASP.NET CORE 3 with Blazor)...So in model project i defined my tables ,relations, queries and their classes then added that on ProjectA and ...
asp.net asp.net-core blazor entity-framework entity-framework-core
asked by OMID

Blazor: A second operation started on this context before a previous operation completed

I'm creating a server side Blazor app. The following code is in the ...Startup.cs.......services.AddDbContext<MyContext>(o => o.UseSqlServer(Configuration.GetConnectionString("MyContext")), ServiceLifetime.Transient); services.AddTransient<MyViewModel, My...
blazor blazor-server-side c# entity-framework entity-framework-core
asked by ca9163d9

How to execute stored procedure using blazor

I have been looking for some sample which show that the execution of stored procedure using blazor. ...So far i haven't seen anything related to execution of stored procedure using blazor....Here is the parameter with SP... MSKCIS.UpdateDischargeBoardData...
blazor entity-framework-core stored-procedures
asked by Rashed Hossen

Responsive UI design causing problems for Entity Framework in Blazor application

I am familiar with writing highly responsive ASP.NET MVC applications where we load the initial page data, and then fire off multiple AJAX calls to load "secondary" data for the page. So behinds the scenes, these AJAX requests all hit the web server(s) a...
blazor blazor-server-side entity-framework entity-framework-core
asked by DrGriff

How to display foreign key name in list table in Blazor Client Side

I am trying to display a subject name for a course where I saved the subject from a database driven dropdown list in a client-side Blazor app. The value returns as a Guid instead of the subject name. Has anyone accomplished this with Blazor? I couldn't fi...
blazor blazor-client-side entity-framework-core foreign-keys
asked by Lawrence

Injecting services in to the MainLayout.cs in Server-side Blazor

As the title suggests, I am trying to inject a service into the ...MainLayout... page in Blazor Server-side. The service is an ApplicationDbContext being injected like this:...@inject ApplicationDbContext context ...and being registered like this:...servi...
blazor blazor-server-side c# dependency-injection entity-framework-core
asked by LuvForAirplanes

Load child entity on the fetch of the Parent entity EFCore

I have the below model. What is the better way to load the parent entity with child entity at the time of fetching from the DB with find method?...Parent Entity:...public class Client { public int Id { get; set; } public string LastName { get; se...
blazor c# ef-core-3.0 entity-framework entity-framework-core
asked by KARAN

Issue with Services when attempting to add Context to Startup.cs

I get this error when I attempt to migrate my project:...An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: Some services are not able to be constructed (Error while val...
asp.net-core-mvc blazor blazor-server-side c# entity-framework-core
asked by Peter Ji

Blazor concurrency problem using Entity Framework Core

My goal...I want to create a new IdentityUser and show all the users already created through the same Blazor page. This page has:...a form through you will create an IdentityUser...a third-party's grid component (DevExpress Blazor DxDataGrid) that shows a...
asp.net-core blazor blazor-server-side entity-framework-core
asked by Leonardo Lurci

How to access Entity Framework DbContext entities in Server-Side Blazor Components

I'm new to .NET Core and Blazor, with mostly WebForms and MVC experience....All the Blazor documentation and tutorials I've found use a separate API project and access data through HttpClient and Json serialization/deserialization. I see why this would be...
blazor blazor-server-side entity-framework-core
asked by Josh Bula

Blazor with Database First

I'm trying to build a simple CRUD app using Blazor in Visual Studio 2019 - I have watched over 7 tutorials between YouTube, PluralSight, and Channel 9, and in all of them, they use Entity Framework Core to create the Database and Tables from within Visual...
blazor ef-database-first entity-framework-core visual-studio-2019
asked by Stpete111

EF Core's Include() function not working from direct GET request

I am building this app using.NET Core 3.1 and my json output isn't right. Here is the class I want a list of:...[DataContract(IsReference = true)] public class State { public int Id { get; set; } [DataMember] public string Name { get; set; } ...
asp.net-core blazor c# entity-framework-core sql-server
asked by Bruno Blanes

Entity Framework Core autosaves objects in Blazor

I might be not getting how some stuff work in Blazor, but here's what my issue is:...whenever I want to edit an object for example ...People... object, I select it in ...@page "/people"... from a table, then I'm redirected to the ...@page "people/edit/id"...
blazor blazor-client-side entity-framework-core sql-server
asked by Barri

Blazor Server - DbContext is disposed after refreshing page

I am developing a Blazor server app, where all clients will have a list of ...things..., any one of these clients can update ...thing... which should then trigger a callback telling all clients to call ...DbContext.Entry(thing).Reload()... so they're up t...
asp.net-core blazor blazor-server-side entity-framework entity-framework-core
asked by John

Need some help on a Linq query, 3rd level include where

I've scoured the internet but not been able to find something for my specific case....Here's my models:... public class Unit { [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int UnitID { get; set; } public string Name { g...
blazor c# entity-framework-core linq
asked by Tjopsta

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...