TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Content
People
Search
Any Word
Exact Word
Content Filter
Articles
Videos
Blogs
Resources
News
Forums
Interviews
Complexity Level
Beginner
Intermediate
Advanced
Refine by Author
[Clear]
Gaurav Gahlot(10)
Ajay Kumar(3)
Akhil Mittal(3)
Ziggy Rafiq(2)
Jobin S(2)
Jignesh Trivedi(2)
Akshay Patel(2)
Guest User(2)
Sandeep Singh Shekhawat(2)
Akhilesh Pandit(2)
Debasis Saha(2)
Sourav Kayal(2)
Dinesh Gabhane(2)
Kasun Kodagoda(2)
Syed Shanu(2)
Vipul Malhotra(1)
Adam Stirtan(1)
Ng Cheehou(1)
Satya Karki(1)
Abhishek Singhal(1)
Sardar Mudassar Ali Khan (1)
Arindam Dawn(1)
Md Sarfaraj(1)
Sarthak Varshney(1)
Mohd Kashif(1)
Shweta Lodha(1)
Mohsin Arif(1)
Aly Elhaddad(1)
Masumi HP(1)
Jay Krishnareddy(1)
Arkadeep De(1)
Sumit Kharche(1)
Rohit Rao(1)
Darshan Shah(1)
Sai Kumar Koona(1)
Bilal Shahzad(1)
Sarathlal Saseendran(1)
Mohammad Irshad(1)
Mahesh Alle(1)
Sachin Kalia(1)
Agus Suhanto(1)
Inumarthi Satya(1)
Pankaj Kumar Choudhary(1)
Banketeshvar Narayan(1)
Rion Williams(1)
Ehsan Sajjad(1)
Priyank Modi(1)
Mudita Rathore(1)
Ashutosh Singh(1)
Jitendra Mesavaniya(1)
Sanjay Kumar(1)
Esamaldin Mohammed(1)
Sandip Jadhav(1)
Subarta Ray(1)
Rahul Singh(1)
Firoz Ansari(1)
Bhawesh Deepak(1)
Amit Mohanty(1)
Manoj Kumar Duraisamy(1)
Ramasagar Pulidindi(1)
Swapnil Metkar(1)
Mark Pelf(1)
Maneesha Kashyap(1)
Santosh Karanam(1)
Aravind Govindaraj(1)
Jorge Levy(1)
Mukesh Kumar(1)
Nagaraj M(1)
Bohdan Stupak(1)
John Iwasz(1)
Pratik Patil(1)
Joao Sousa(1)
Rakesh Kumar(1)
Pradeep Yadav(1)
Habibur Rony(1)
Latest First
Oldest First
Most Viewed
Sort By
Search Results
No search result found
A Comprehensive Guide to Best Practices and Common Scenarios Using Dependency Injection in .NET 8 with C#10
Feb 20, 2024.
This comprehensive resource covers everything you need to know to leverage Dependency Injection effectively in .NET 8 with C# 10. Ziggy Rafiq explains how to use Dependency Injection in the best possible way. For developers looking to optimize their .NET projects, this guide provides invaluable insight from understanding core concepts to implementing advanced techniques.
Dependency Inversion Principle VS Dependency Injection in C#
Jan 04, 2024.
Dependency Inversion Principle (DIP) and Dependency Injection (DI) are pivotal in crafting resilient software. Learn their implementations in C# for modular, adaptable, and maintainable code structures.
Understanding Dependency Injection in C#
Dec 18, 2023.
This article explores Dependency Injection (DI) in C#, explaining its types (constructor, property, and method injection) and demonstrating its implementation using a UserService and a SqlUserRepository for improved maintainability and testability.
Keyed Dependency Injection in .NET 8
Nov 16, 2023.
Keyed dependency injection, introduced in .NET 8, is a powerful feature allowing service resolution based on specific keys. This enables managing multiple implementations of the same interface efficiently. Learn about its implementation, usage restrictions, and how it enhances flexibility in application design, ensuring a valuable addition to .NET developers' toolkits.
Using Dependency Injection in .NET Console Apps
Oct 29, 2023.
This article introduces developers to using Dependency Injection in console applications, expanding their utility beyond simple command-line tools. It explains how to set up a console app with a ServiceCollection, just like in ASP.NET Core. Key steps and code are provided, including installing NuGet packages, creating a Program.cs structure, integrating Entity Framework (EF) Core for database operations, and utilizing ILogger for improved logging. The article illustrates how to enhance console apps with advanced features and services.
How to Explain Dependency Injection to a 6-Year-Old Kid
Oct 17, 2023.
In explaining Dependency Injection (DI) to a child, consider action figures equipped with interchangeable tools. Imagine adding new weapons without altering the figures, much like incorporating advanced functionalities into software seamlessly. Explore the essence of DI's adaptability through a practical coding analogy, fostering flexibility and future readiness.
Simplify Dependency Injection In .NET 6 For Windows Forms Development
Oct 06, 2023.
This article explains how to use dependency injection in .NET 6 Windows Form Application.
API Call Using Dagger2 Dependency Injection With RxJava In Android
Oct 03, 2023.
In this article, you will learn about how to make API Call using Dagger2 dependency injection with RxJava in android.
Achieving Dependency Injection in .NET Core WebAPI
Sep 13, 2023.
This article outlines the process of implementing Dependency Injection (DI) in a .NET Core Web API application. DI is crucial for managing dependencies, enhancing modularity, and enabling testability. It begins by explaining the importance of DI in a Web API and then provides a step-by-step guide on how to achieve it.
What is Dependency Injection in Angular?
Sep 13, 2023.
Dependency Injection (DI) is a fundamental design pattern in Angular used to manage dependencies and data flow within an application. It promotes loose coupling between components, enhancing modularity, maintainability, and testability.
Mastering Dependency Injection and Third-Party IoC Integration
Aug 29, 2023.
Dependency Injection (DI) is a design pattern used in software development to achieve loosely coupled components by allowing the injection of dependencies into a class rather than creating them within the class. This promotes better code reusability, testability, and maintainability. In the context of Dependency Injection, an Inversion of Control (IoC) container is a tool that manages the injection of dependencies.
ASP.NET Core Dependency Injection Using C# with Framework 7
Jul 19, 2023.
ASP.NET Core Dependency Injection (DI) is a powerful feature that allows you to manage and resolve dependencies in your applications. It provides a way to achieve loose coupling, modularity, and testability. When combined with Framework 7, a popular framework for building mobile applications, ASP.NET Core DI becomes even more valuable.
Why is Angular's Dependency Injection so Powerful?
May 04, 2023.
The article is about Angular's Dependency Injection system, which is a design pattern used in software development that helps create loosely coupled code. Dependency Injection separates the creation of an object from its usage, making the code more modular and easier to maintain. Angular's Dependency Injection system is a powerful and flexible system that allows developers to define dependencies at various levels, from the application level to the component level.
Simplifying Flutter App Development with GetX's Dependency Injection System
Feb 24, 2023.
Managing dependencies is essential to building maintainable and scalable code in Flutter applications. A dependency injection (DI) solution like GetX can make this process much more efficient and effective than Flutter's essential dependency management tools.
Getting Started with Dependency Injection in ASP.NET Core using C#
Feb 17, 2023.
In this article, we explored how to use dependency injection (DI) in ASP.NET Core using C#. We covered the basics of DI, including what it is and why it's important. We then looked at how to set up DI in an ASP.NET Core application, including registering services and injecting dependencies into controllers, services, and middleware.
Implement And Register Dependency Injection In ASP.NET Core/.NET 6
Apr 11, 2022.
implement and register dependency injection in .NET 6
Implementing Dependency Injection In Azure Functions
Mar 01, 2022.
This article talks about how we can use dependency injection in Azure Functions. Dependency injection is a very well known design patterns which is used to implement IoC as provides you a facility to segregate object creation logic from it’s usage.
How To Use Dependency Injection In .NET Core
Jan 27, 2022.
This article will describe the concept and practical implementation in .Net Core. I tried to cover all things w.r.t.Net Core Development
ThunderboltIoc - .Net Dependency Injection Without Reflection!
Jan 10, 2022.
Introduction and documentation for the new ThunderboltIoc framework which achieves dependency injection in .Net without reflection.
Building ASP.NET Core Web Application With Dependency Injection Passing Objects Between Layers
Dec 07, 2021.
In this article, you will learn how to build ASP.NET core web application with dependency injection passing objects between layers.
Implementing Unit Of Work And Repository Pattern With Dependency Injection In .Net 5
Sep 03, 2021.
This article will deep dive into the different kinds of pattern implementation and its usage.Net 5 Web API.
How To Add Dependency Injection In Your Sitecore Application
Jan 07, 2021.
In this article, you will learn how to add dependency injection in your sitecore.
How To integrate Dependency Injection In Azure Functions
Jan 05, 2021.
Learn how to integrate Dependency Injection in Azure Functions, creating HTTP trigger functions, and injecting service objects using DI. Understand the Dependency Injection pattern, steps to add DI in Azure Functions, and its similarity with ASP.NET Core. Follow a step-by-step guide to create functions.
.NET Core Singleton Dependency Injection With Real Use Case
Sep 18, 2020.
In this article, you will learn about .NET Core Singleton Dependency Injection with a real use case.
Service Lifetime Dependency Injection - ASP.NET Core
Jul 21, 2020.
Basic understanding of a feature called in build Dependency Injection provided by ASP.NET Core.
Understand Dependency Injection in Blazor
Feb 23, 2020.
In this article, you will learn about dependency Injection in Blazor.
Implementing Dependency Injection In .NET Core Console Applications
Feb 07, 2020.
In this article, you will learn how to implement Dependency Injection in .NET Core Console Applications.
Basics Of Dependency Injection In ASP.NET Core
Jul 19, 2019.
ASP.NET Core heavily depends on Dependency Injection. We'll not be able to write better applications without understanding the basics of this framework & adopting it. In this article, we will learn the same.
Connect MS SQL, MongoDB And MySQL Databases From Same MVC App Using Dependency Injection
Mar 25, 2019.
In this post, we will see how to connect MS SQL, MongoDB, and MySQL databases from the same MVC application. We will use dependency injection with Unity package to achieve this.
.NET Core Dependency Injection - One Interface, Multiple Implementations
Feb 05, 2019.
In this article, we will see how we can inject the dependency when we have more than one implementation for an interface.
Overview Of Dependency Injection In Angular
Nov 17, 2018.
Dependency injection is the way of programming in which we try to inject the set of operations called services to the modules. Without dependency injection, if we are creating the application in large scale then we have to repeat the creation certain set of operations everywhere in the application. With the help of Dependency injection we simply create the services that contains the set operations related to creating the data and other manipulations and inject it to everywhere it is using. It allow us to create the loosely coupled application where components are independent of changes done by services externally.
Understanding Dependency Injection Using Constructor, Property, And Method In C#
Nov 04, 2018.
Today, I am going to explain in details about dependency injection in C#. This article is for those developers who don't know anything about Dependency Injection (DI). Just go through below all the example along with code comments to get a better understanding of DI.
Owned<T> - Controlled Lifetime In Dependency Injection With Autofac
Feb 16, 2018.
Generally speaking, an owned dependency corresponds to some unit of work performed by the dependent component.
Custom Service Dependency Injection In .Net Core 1.1
Jan 04, 2018.
In this article we will go through one of the key features of .Net Core, Custom Service dependency injection in .Net core 1.1, particularly at controller’s action level .
ASP.NET Core 2.0 MVC Dependency Injection In Views
Nov 01, 2017.
In ASP.NET Core dependency injection is not limited to middleware, controllers and models etc. Views can also benefit from the services configured in the service container.
Applying Dependency Injection In DevExpress MVVM WPF Application Introduction
Oct 31, 2017.
In this post, I’ll give a tutorial on how to apply dependency injection in DevExpress WPF application. This post assumes you already know about dependency injection, WPF application, and also MVVM. DevExpress MVVM is one of freely available MVVM frameworks we can use to develop desktop application using WPF.
How To Implement Dependency Injection In MVC Project
Oct 07, 2017.
Here I am going to explain how to implement dependency injection in MVC Project in detail including separate layers for getting data through Services and Repositories.
Introduction To Dependency Injection And Services In Angular 2
Feb 21, 2017.
In this article, you will learn about Dependency Injection and Services in Angular 2.
Overview Of Dependency Injection In ASP.NET Core
Feb 13, 2017.
In this article, you will learn about Dependency Injection in ASP.NET Core.
Web API Architecture And Dependency Injection Best Practices
Feb 06, 2017.
In this article, you will learn about Web API architecture and Dependency Injection best practices.
Accessing Identity And HttpContext Info Using Dependency Injection In .NET Core
Oct 11, 2016.
In this article, you will learn how to access Identity and HttpContext Info using Dependency Injection in .NET Core.
Implement Dependency Injection in Web API With Simple Injector
Jun 09, 2016.
In this article, I will discuss about how we will implement dependency injection in Web API with the help of a simple injector.
Implement Dependency Injection In Web API
Jun 07, 2016.
In this article, I will discuss how we will implement dependency injection in WEB API with the help of a simple injector.
AngularJS From Beginning: Dependency Injection - Part 11
May 17, 2016.
In this article, we will discuss how to use dependency injection in AngualrJS. This is part 11 of the article series.
Implementing Repository Pattern And Dependency Injection In ADO.NET Using Generics In C#
Dec 13, 2015.
In this article you will learn about implementing Repository pattern and Dependency Injection in ADO.NET using Generics in C#.
In Depth Look: Strategy Design Pattern, Dependency Injection (DI), Open/Closed Principle (OCP) and Loose Coupling
Jun 06, 2015.
This article explains the Strategy Design Pattern, Dependency Injection, Open/Closed principle and Loose Coupling.
RESTful Day #3: Resolve Dependency of Dependencies Using Inversion of Control & Dependency Injection in ASP.Net Web APIs with Unity Container and Managed Extensibility Framework (MEF)
May 17, 2015.
In this article we’ll try to resolve the dependency (data model) of a dependency (services) from our existing solution.
RESTful Day 2: Inversion of Control Using Dependency Injection in Web API's Using Unity Container and Bootstrapper
May 11, 2015.
This article explains how to resolve a dependency using a Unity Container provided by Microsoft’s Unity Application Block.
Implement Dependency Injection Using Autofac IoC Container
Jun 09, 2014.
This article provides a basic understanding of de-coupled architecture and the concept of Inversion of Control.
Implement Dependency Injection Using NInject
Jun 02, 2014.
This article explains the basics of Ninject as an IoC container.
Constructor Dependency Injection Pattern Implementation in C#
May 25, 2014.
This article is about the Constructor Dependency Injection Pattern Implementation in C#.
Implementation of Dependency Injection in Web API
Oct 16, 2013.
In this article, I will show you a simple implementation of Dependency Injection in the Web API.
Dependency Injection and Service Lifetimes in .NET Core
Apr 19, 2024.
Dependency Injection (DI) simplifies software development by promoting loosely coupled code, aligning with the Dependency Inversion Principle of SOLID. In this guide, we'll explore how to implement Dependency Injection and delve into the significance of different service lifetimes in .NET Core applications.
Dependency Injection and Service Lifetimes in .NET
Apr 18, 2024.
In this article, I will explain Dependency Injection (DI) is a design pattern that supports the development of loosely coupled code, and it’s also one of the SOLID principles (Dependency Inversion Principle).
Microsoft.Extensions.DependencyInjection for Dependency Injection
Apr 16, 2024.
Dependency Injection (DI) is a software development design pattern that aims to achieve loose coupling between components and enhance the maintainability, testability, and scalability of applications. In the context of C#, DI is commonly implemented using frameworks like .
.NET Dependency Injection: Unleash the Power of SuperInject
Dec 17, 2023.
SuperInject is not just another NuGet package; it’s your trusty sidekick in dependency injection. Picture this: streamlined registration of services and repositories with a touch of simplicity and a dash of fun.
Why do We Use Dependency Injection?
Dec 11, 2023.
What is a dependency injection and why to embrace it as a better programming practice.
Dependency Injection Essentials in Angular
Dec 07, 2023.
Angular, Google's robust front-end framework, employs Dependency Injection (DI) to elegantly manage components and services. DI, a design pattern fostering loose coupling, allows components to receive dependencies externally. This article navigates the intricacies of DI in Angular, unraveling its principles, extolling advantages, and providing practical implementations through illustrative code examples.
Dependency Injection And Service Lifetime in ASP.NET Core
Sep 18, 2023.
Dependency injection And Service Lifetime in ASP.NET Core With Realtime example
Dependency Injection in C# .NET With Examples
Sep 12, 2023.
Discover Dependency Injection in C# .NET: Learn how to achieve flexible, maintainable, and loosely coupled code by decoupling components in your software. Explore constructor, property, and method injection with practical examples.
What is Dependency Injection?
Aug 23, 2023.
Dependency Injection (DI) is a fundamental software engineering pattern that fosters loose coupling and component modularity. In ASP.NET Core, DI streamlines managing component dependencies, enhancing development, testing, and maintenance.
Dependency Injection in ASP.NET Core
Aug 21, 2023.
Discover the power of Dependency Injection (DI) in ASP.NET Core with this comprehensive guide. Dive into the world of IoC (Inversion of Control) principles and learn how DI promotes modular, maintainable, and testable code. Explore the reasons behind using DI in ASP.NET Core applications and unlock its benefits, including enhanced reusability, flexibility, and easier testing. Follow step-by-step instructions to implement DI, from service registration to constructor injection. Understand different dependency lifetimes and explore advanced features like named services and conditional registration. Embrace Dependency Injection to elevate your ASP.NET Core development skills and build robust, scalable applications with ease.
Dependency Injection In .NET Core - Understanding The Fundamentals And Best Practices
Apr 12, 2023.
In this article, you will learn about dependency Injection in .NET Core: Understanding the Fundamentals and Best Practices.
Dependency Injection In .Net Core With Example
Feb 13, 2023.
In this article, you will learn about Dependency Injection in .Net Core with Examples.
Dependency Injection Features In .NET 6
Dec 21, 2022.
In this article, you will learn about Dependency injection features in .NET 6.
Implementing Repository Pattern Along With Dependency Injection
Aug 29, 2022.
In this article topics covered are Repository Pattern, Dependency Injection, Ajax call.
Dependency Injection Pattern In C# - Short Tutorial
Jul 31, 2022.
In this article, we explain DI Pattern, DIP, IoC, and DI Container.
ASP.NET CORE - CRUD Using Dependency Injection
Jun 27, 2022.
In this article, you will learn about CRUD Using Dependency Injection.
Dependency Injection In ReactJS
May 10, 2022.
In this article, you will learn about dependency Injection in ReactJS using logger example
Dependency Injection
Mar 04, 2022.
This article describes Dependency Injection.
Azure Functions In .Net 5 – Dependency Injection
Oct 27, 2021.
In this article, we understand about Azure Functions In .Net 5 – Dependency Injection.
Dependency Injection Lifetimes In ASP.NET CORE
Apr 01, 2020.
Understanding the Dependency Injection & its lifetimes(Singleton, Transient, Scoped). Example can help to understand the different lifetimes and choose appropriate lifetime for service.
Dependency Injection Normal Way vs MEF vs Unity
Mar 13, 2020.
In this article, we will try to understand how we can achieve dependency injection without any framework and using MEF and Unity Framework.
Dependency Injection (Property Injection) In C#
Nov 21, 2019.
In this article we are going to discuss Property Injection. Dependency injection (DI) is a design pattern used in C# and other object-oriented programming languages to achieve better code organization, maintainability, and testability. It's a technique that helps manage dependencies between different parts of an application.
Dependency Injection (Constructor Injection) In C#
Oct 29, 2019.
In this article, you will learn about dependency injection (constructor injection) in c#.
Using Implementation Factories To Register Dependencies In ASP.NET Core Dependency Injection
May 13, 2019.
In this article, you will learn how to use implementation factories to register dependencies in ASP.NET Core dependency injection.
Register And Use Multiple Implementations Of A Dependency In ASP.NET Core Dependency Injection
May 10, 2019.
In this article, we will look into how to register multiple implementations of the same dependency in ASP.NET Core and how to use these dependencies in your classes by injecting them.
Dependency Injection For Quartz.NET In .NET Core
Apr 29, 2019.
The article shows how to perform dependency injection when using Quartz.NET library employing standard .NET Core DI container library. Also, we'll focus on a couple of other useful .NET core techniques.
Dependency Injection In .NET Core
Feb 06, 2019.
In this article, we will see how dependency injection works in .net core using Microsoft.Extension.DependencyInjection.
Dependency Injection With Serverless Functions
Dec 16, 2018.
Port your interfaces and classes from your Web API to a serverless function using dependency injection. This article demonstrates how to bootstrap AWS Lambda and Azure Serverless Functions with dependency injection.
Dependency Injection - Service Lifetimes
Jun 21, 2018.
The article gives a short and simple example of Service lifetimes, when using DI pattern in the application.
ASP.NET Core 2.0 User Role Base Menu Management Using Dependency Injection
Apr 03, 2018.
In this article we will see in detail how to display role based dynamic menu after user logs in. For this we will create a Menu Master table and insert few records to display the menu and URL to menu based on logged in user role.
Dependency Injection Using Unity - Resolve Dependency Of Dependencies
Mar 13, 2018.
In this article, you will learn to showcase the existing problems with tightly coupled applications, how to make the application loosely coupled and achieve inversion of control via dependency injection, solve the problem of resolving dependency of a dependency in a three-layered/n layered project architecture using unity framework.
Dependency Injection In ASP.NET Core 2.0
Mar 06, 2018.
In this article, we will see in detail how to use Dependency Injection in ASP.NET Core 2.0.
Learn Angular 4.0 In 10 Days - Service (Dependency Injection) - Day Seven
Feb 05, 2018.
In this article, we will discuss about Service and Dependency Injection in Angular 4.
ASP.NET Core 2.0 - How To Use Dependency Injection
Jan 15, 2018.
In this article, I'll show you the new feature introduced in ASP .NET Core that allows you to inject dependencies directly into a View using the dependency injection container.
Using Lazy<T, TMetadata> In Dependency Injection
Dec 11, 2017.
Lazy<T,TMetadata> is a type provided by MEF to hold indirect references to exports. Here, in addition to the exported object itself, you also get export metadata, or information that describes the exported object.
Dependency Injection In Angular
Nov 14, 2017.
Let us assume, if we want to build a Home. To build a Home we need several objects like bricks, wood, concrete, iron etc. To keep this example simple let's say we just need a bricks object to build a Home.
Dependency Injection Into Views In ASP.NET Core MVC
Nov 01, 2017.
The dependency injection in ASP.net core is not limited to middleware, controller, and models. It also supports dependency injection into view.
Dependency Injection In ASP.NET MVC 5
Oct 10, 2017.
In this article, understand Dependency Injection in MVC and how to implement Dependency Injection in ASP.NET MVC using C#.
Why "Service Locator" is an "Anti-Pattern" for Dependency Injection
Sep 29, 2017.
The Service Locator is used as a replacement for the new operator. The problem with service pattern is that it hides a class's dependencies and is a bonafide anti-pattern. In fact, it takes away a developer's clarity about the class he/she is using.
Dependency Injection - Part 7 - Service Locator Pattern
Sep 18, 2017.
Service locator pattern is one of the most commonly used patterns. In general, this pattern is used along with other patterns like Adapter Pattern, Observer Pattern, Dependency Injection Principles and many more. In this post, however, we will be talking about its use with dependency injection, which is one its many uses.
Dependency Injection - Part Six - Autofac's "AsImplementedInterfaces"
Sep 11, 2017.
While I was exploring Autofac, I found AsImplementedInterfaces quite interesting. Not only because it is useful, but also because if we are not careful with its use, we may end up with unexpected application behavior.
ASP.NET Core 2.0 Dependency Injection
Sep 07, 2017.
Here e will learn how to use ASP.NET Core service container for dependency injection.
Dependency Injection - Part Five - Using A DI Container (Autofac)
Aug 29, 2017.
A DI container takes the responsibility of instantiating and providing the dependency instances, irrespective of the level of dependencies. As a result, it is a container that manages the scope of the instantiated objects.
Dependency Injection - Part Four -Embracing Abstraction
Aug 18, 2017.
Dependency Injection (DI) is a technique that helps us achieve loose coupling between objects and their collaborators. In this post, we will use constructor based dependency injection, however, we are not going to use any DI container for now.
Dependency Injection - Part 3 - Implicit Vs Explicit Dependencies
Aug 12, 2017.
If a component or class depends upon other components to complete its operations, then these other components are dependencies for this class. Our class can have these dependencies as implicit or explicit dependencies.
Dependency Injection - Part Two - Five Reasons To Write Loosely Coupled Code
Aug 09, 2017.
A loosely coupled application has good isolation among its classes, modules and assemblies. Therefore, if we make a change to one part of the application, we only need to update the relevant modules. We do not need to make changes throughout the application.
Dependency Injection - Part One -Tightly Coupled Application
Aug 07, 2017.
It is a best practice to use interfaces instead of concrete classes. These interfaces can then be mocked at the time of unit testing, which will prevent any call to the actual database. Also, it is a good practice to stop "newing-up" objects in classes.
Application Architecture - First Know Dependency Before Dependency Injection
Apr 18, 2017.
This article is about dependency and its use, advantages and disadvantages; as well as about Dependency Inversion, Inverse of Control, and IOC Framework.
1
-
100
of
135
<<
1
2
>>
Search
OUR TRAINING