2.0: Identity Model
Last updated
Last updated
In this module we'll address the placement of the IdentityModels that will be used for authentication later on.
To make the IdentityModels.cs
more accessible, we will move it from the WebMVC project to the Data project. The Identity Models are provided to us by Microsoft and allow us to provide authentication. Consider the following diagram:
Go into the ElevenNote.WebMVC project.
Go into the Models directory.
Click on IdentityModels.cs
.
Press ctrl + c
to copy the file(or right click and copy).
Right click on ElevenNote.Data and paste the IdentityModels.cs
file into the project.
After you paste the file successfully, you can delete it from ElevenNote.WebMVC.
In the IdentityModels.cs
file, change the namespace to ElevenNote.Data.
You will now have errors that we will resolve next.