Simple Identity In Asp.Net Core Tutorial from scratch part 1

Asp.net-core By Sagar Jaybhay

Asp.net core Identity used for a security-related feature in your asp.net core application. Asp.net core identity is a membership system that adds a login functionality to our app. It is a built-in membership system. Uses of Asp.net core Identity Is used to create, update, read and delete user accounts Authentication and authorization Is also used for password recovery Two-factor authentication with SMS Asp.net core Identity supports external login like Facebook, Google and Microsoft Steps for Identity In Asp.Net Core Step 1 Need to add IdentityDBContext instead of DbContext means In…

Read More

Entity Framework Code First Migration In Asp.net Core

Code First Entity Framework Migration In Asp.Net Core By Sagar Jaybhay Migration helps to sync database schema with the model classes. In entity framework code first we have different database initialization strategies like . CreateDatabaseIfNotExists, DropCreateDatabaseIfModelChanges, and DropCreateDatabaseAlways.and there is one problem with these strategies like if you have existing stored procedure,triggers or you have any other database objects. When you use the above-mentioned strategies they will re-create the database so you may lose your data and other db objects. So entity framework core introduces a migration tool that automatically…

Read More

How to Install Entity Framework and Configure in Asp.Net

Asp.net-core By Sagar Jaybhay

First part of Entity Framework Link In this article i will explain How to Install Entity Framework and Configure for sql server in asp.net core mvc How to install Entity Framework Core in your web application? In asp.net core we have meta-package and it does not have all dll it’s own it is only list of dependencies. Means it’s a list of dependencies. From 2.1 version of asp.net core we have no need to add an entity framework package. Our meta-package already contains this as part of the meta-package. List…

Read More