ASP.
NET Core Project Details
"ConnectionString":{
"Database_Name": "server=.;database=Database_Name;Integrated Security=true;"
},
In DAL:
[Link]
[Link]
Then add datacontext folder:
In Databasecontext class:
Now Migration Part:
1st Make references of the projects:
In PM console:
add package [Link] in the project
Initiate the migrations:
Insert Dummy authentications or the data in the users table wont be inserted:
Now add the Interface:
Now inherit the userfunction class: with this
Now in BL:
Authentication and Authorization:
These tables are created in the database:
Add an empty razor view for Register in the pages folder:
Add a ViewModel:
In the controller or in the class of [Link] add the method of register:
Add the Dependencies UserManager and SignInManager:
Now we will change the home page based on whether the user is signed in or not:
Modify the Layout nav bar option accordingly:
Now add Login:
Logout:
Done!!
And Add [Authorize on the Privacy page etc.]
Course By Jess Chadwick:
Added Dbcontext for this and a connectionstring:
Added [Link]();