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

Blazor Tutorial - Knowledge Base (KB)

1 results in tag: dependency-injection

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

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...
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!