ToProgramming Beta
-
Identity 2

Follow us on ToProgramming

Identity 2

How to work with identity 2 in MVC

Identity 2

Today we want to talk to you about identity 2

1.Open your Visual Studio to get started

2.Click on create a new project

3.Find Asp.Net Web Application (.Net Framework)

4.Click on it

5.Click create

6.Click change Authentication (Change) and click on Individual User Account

7.Click Ok and then create

Congratulations, you have achieved identity 1, but our goal is identity 2

You must first go to the Package Manager Console

You can bring it from the Tools tab and the NuGet Package Manager section and then the Package Manager Console

And then copy this into it

Install-Package Microsoft.AspNet.Identity.Samples -Pre

If you have reached this stage, you should be proud of yourself

Your website is now on identity2

I'm sorry but I can not explain all the sections

First let's create an identity database

You have two connectionStrings in Web.config

Comment on the first one

This is the code you have in your web.config

  <add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=Identity_2-2-1-alpha1;Integrated Security=SSPI" providerName="System.Data.SqlClient" />

I put the second one for you

connectionString=Data Source=(LocalDb)\v11.0

Delete this

And just put (.) Instead

My friends, I will post the second part of this article on the site soon

Please support us

We really want you to support the word beta next to the site name after us

 

How to work with identity 2 in MVC (Part 2)

8/16/2020 2:55:10 AM
ToProgramming
0
137
Asp.Net

You leave the first comment


Post Comment

You must be authenticated to submit a comment