---
title: "What is the difference between AddSingleton, AddScoped, and AddTransient in dependency injection?"  
description: "What is the difference between AddSingleton, AddScoped, and AddTransient in dependency injection?"  
author: "Ravi Vishwakarma"  
published: 2025-03-26  
updated: 2025-03-27  
canonical: https://www.mindstick.com/forum/161361/what-is-the-difference-between-addsingleton-addscoped-and-addtransient-in-dependency-injection  
category: "asp.net core"  
tags: ["asp.net core", ".net core"]  
reading_time: 1 minute  

---

# What is the difference between AddSingleton, AddScoped, and AddTransient in dependency injection?

What is the [difference](https://www.mindstick.com/articles/157114/good-news-or-bad-news-and-the-difference-is) between `AddSingleton`, `AddScoped`, and `AddTransient` in [dependency injection](https://www.mindstick.com/articles/335832/services-and-dependency-injection-in-angularjs)?


---

Original Source: https://www.mindstick.com/forum/161361/what-is-the-difference-between-addsingleton-addscoped-and-addtransient-in-dependency-injection

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
