Showing posts with label Dependency injection. Show all posts
Showing posts with label Dependency injection. Show all posts

Thursday, August 6, 2020

What is ASP.NET MVC 4 Dependency Injection please explain step by step

In Object-Oriented Programming paradigm, objects work together in a collaboration model where there are contributors and consumers. Naturally, this communication model generates dependencies between objects and components, becoming difficult to manage when complexity increases.

Wednesday, August 5, 2020

Dependency Injection in C#

Dependency Injection (DI) is a software design pattern. It allows us to develop a loosely-coupled code. The intent of Dependency Injection is to make code maintainable. Dependency Injection helps to reduce the tight coupling among software components. Dependency Injection reduces the hard-coded dependencies among your classes by injecting those dependencies at run time instead of design time technically. This article explains how to implement Dependency Injection in C# and .NET code.

We have the following ways to implement Dependency Injection.

1) Constructor Injection
2) Property Injection
3) Method Injection


Wednesday, July 22, 2020

Top - Asp.net core 3.1 , Blazor 3.1 Interview Questions and Answers




Q.1 What is Blazor?

Ans:-

It’s a good and perfect framework by Microsoft for building interactive client-side web UI with the best performance ever in .NET and C# named Blazor. In Blazor We use component-based architecture like other modern web development frameworks Angular or React.


Q. 2 What's new in ASP.NET Core 3.1

Ans:-

Q.3 What is the difference between Transient , Scoped , Singleton , ?


Ans : -

1) Transient – Each time a transient object is requested, a new instance will be created.

2) Scoped – The same object will be used when requested within the same request.

3) Singleton – The same object will always be used across all requests.

Q.4 What is Dependency injection in ASP.NET Core . ?







Rewrite whole Web Site System and Sub System with data migration to new system.

Can you please share me your skype id or whats up number for better communications  my skype id is - jitendra.tech  whats up - +919617741414...