Dependency Injection in ASP.NET Core

Last Updated: January 8, 2019

dependency injection aspnet core

Dependency Injection (DI)is an ASP.NET Core MVC technique to achieve loosely coupling between objects. The working of the Dependency Injection is like: If a Controller has a dependency on another class, then in the constructor of the Controller the dependency for the class is defined. On seeing this dependency the Core MVC provides the class object to the Controller automatically. So this provides loosely coupling between the Controller and the other class. (more…)

Configuring Application in ASP.NET Core MVC

Last Updated: January 8, 2019

configurations aspnet core

This tutorial on ASP.NET Core MVC Configurations will reveal you a lot about the inside of this framework. This will give you a solid foundation for understanding the coming topics later on. I will start by creating a new project using empty template. (more…)

First CRUD Application in ASP.NET Core MVC

Last Updated: December 28, 2018

first crud application aspnet core

You are now in a position to learn CRUD operations. For this I will create a small ‘Employee’ form which can be filled and submitted. On submission, the employee information will be stored. Later on I will also make Read, Update & Delete operations. (more…)

First ASP.NET Core MVC Application

Last Updated: December 20, 2018

first application asp net core mvc

In this tutorial you will create your first ASP.NET Core MVC application in Visual Studio 2017. (more…)

Introduction to ASP.NET Core MVC

Last Updated: December 17, 2018

introduction asp net core mvc

ASP.NET Core MVC is Microsoft’s Web Application development framework that is in great demand today. It is based on Model-View-Controller (MVC) architecture, ideas and techniques from Agile Development, and the best parts of .NET platform. In this tutorial I will introduce you with ASP.NET Core MVC. (more…)

How to integrate Google login in Identity Membership System

Last Updated: December 14, 2018

login with google

Third-Party Authentication like Google, Facebook, Microsoft and Twitter, is easy to do in Identity System. Here I will create a feature that will allow users to Login with Google credentials. (more…)

How to work with Policies in Identity Membership System

Last Updated: December 14, 2018

policies identity

Just like you did the Authentication based on Roles, in the same way, you can also do authentication based on claims. But remember that Claims Authentication requires Policies, these Policies are created on the Application’s Configuration. (more…)

How to work with Claims in Identity Membership System

Last Updated: December 10, 2018

claims identity

So far you have seen that I did the authentication of a User based on his email and password stored in the database. I also authorizes only users of a particular role to access an action method. Here I am trusting my application, which is providing all the information that I needed, to manage the user authentication and authorization. (more…)

How to add Custom User Properties in Identity Membership System

Last Updated: December 7, 2018

Custom User Properties in identity

If you want to add more information to the Users in Identity System then you can do this by adding Custom User Properties to the User class (i.e. which inherit from the IdentityUser parent class). (more…)

How to work with Roles in Identity System in ASP.NET Core

Last Updated: December 3, 2018

identity roles

In my previous tutorial I have explained How to do Authentication of Users in Identity in ASP.NET Core. Now I will extend it with Identity Roles. In Identity System you can create Roles that contain a set of permissions for doing a set of activities in the application. For example an organization can have 4 roles which are: (more…)