ASP.NET Core Dependency Injection

  Рет қаралды 6,777

Coding Tutorials

Coding Tutorials

2 жыл бұрын

How do you pass parameters to a constructor that you never call? Try dependency injection.
Source code available at: github.com/JasperKent/Depende...

Пікірлер: 15
@CodingTutorialsAreGo
@CodingTutorialsAreGo 2 жыл бұрын
Let me know what other .NET Core features you'd be interested in. Source code at: github.com/JasperKent/Dependency-Injection Remember to subscribe at kzbin.info/door/qWQzlUDdllnLmtgfSgYTCA And if you liked the video, click the 👍.
@SharafMansour
@SharafMansour 2 жыл бұрын
This is not a dream. You are a true savior.
@Praveen.Kumar.
@Praveen.Kumar. 2 жыл бұрын
Always enjoy watching your videos
@wenchaojie8171
@wenchaojie8171 2 жыл бұрын
Your tutorials are very helpful! Thank you so much!
@CiaranCorrigan86
@CiaranCorrigan86 2 жыл бұрын
Thank you very much for this. Really clear and informative.
@rehmanshahyan
@rehmanshahyan Жыл бұрын
Thank you very much for this.
@tomjones984
@tomjones984 2 жыл бұрын
Just found your channel yesterday whilst looking for something regarding EF, and subscribed because I've found the videos to be very interesting, clear and informative; one thing's bugging me though...what do you store in the tiny colourful tubs? - An easily distracted developer
@CodingTutorialsAreGo
@CodingTutorialsAreGo 2 жыл бұрын
Knick-knacks. Paperclips, batteries, cable ties ... Oddly, you're not the first to ask.
@user-gx4ju2ow6o
@user-gx4ju2ow6o 6 ай бұрын
Which keyboard do you use can you please tell ? Love the sound
@Chapali9a
@Chapali9a 2 жыл бұрын
Any possibility of a Unit Testing series?
@CodingTutorialsAreGo
@CodingTutorialsAreGo 2 жыл бұрын
Unit Testing crops up in quite a few videos - because it's such an integral part of software development. But I'll put it on the list to do an in-depth series.
@gogolmbrakata9101
@gogolmbrakata9101 2 жыл бұрын
Hello, why do we have an injection of a DbContext, using the croncret type of the object, instead of some thing like IDbContext ?? can we speak about dependency injection without using any interface implemented by the concret class object expected ??
@CodingTutorialsAreGo
@CodingTutorialsAreGo 2 жыл бұрын
Yes, you're right. We inject through an interface, allowing alternative implementations, or though a concrete class. For testing, we can either wrap the DbContext in a repository and mock that, or make our derived DBConext a base class from which we derive a mock, or use the standard DbContext configured for an in-memory DB (see kzbin.info/www/bejne/gHzcpXSaqLyUh9U)
@gogolmbrakata9101
@gogolmbrakata9101 2 жыл бұрын
@@CodingTutorialsAreGo Thank you
@reverendbluejeans1748
@reverendbluejeans1748 2 жыл бұрын
This tutorial would not have helped me learn what dependency injection is. A simplified example using asp.net would have helpted.
The Dispose Pattern
16:28
Coding Tutorials
Рет қаралды 9 М.
Dependency Injection & Inversion of Control
11:00
Ryan Schachte
Рет қаралды 191 М.
100😭🎉 #thankyou
00:28
はじめしゃちょー(hajime)
Рет қаралды 56 МЛН
They RUINED Everything! 😢
00:31
Carter Sharer
Рет қаралды 11 МЛН
Dependency Injection in .NET Core (.NET 6)
1:00:32
IAmTimCorey
Рет қаралды 180 М.
.NET Core Garbage Collection
14:54
Coding Tutorials
Рет қаралды 21 М.
How Dependency Injection Works in #csharp
43:52
Raw Coding
Рет қаралды 52 М.
What is Dependency Injection in .NET?
7:31
DotNetMastery
Рет қаралды 20 М.
Rest API - Best Practices - Design
15:50
High-Performance Programming
Рет қаралды 95 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 735 М.
Blazor RenderFragment
23:11
Coding Tutorials
Рет қаралды 1 М.
Asp.Net Core - Dependency Injection - Deep Dive [Audio Fixed]
55:22
Mohamad Lawand
Рет қаралды 2,4 М.
POCO F6 PRO - ЛУЧШИЙ POCO НА ДАННЫЙ МОМЕНТ!
18:51
Не обзор DJI Osmo Pocket 3 Creator Combo
1:00
superfirsthero
Рет қаралды 1,3 МЛН
Pratik Cat6 kablo soyma
0:15
Elektrik-Elektronik
Рет қаралды 8 МЛН
ПК с Авито за 3000р
0:58
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,8 МЛН