
Create a new database in SQL Server Management Studio, switch to it, and define a users table with id as an identity column, plus username, email, password, and email confirmed.
In this lecture we are going to create the project in Visual Studio.
The lecture shows how to add an accounts controller to the project, create an empty api controller, and configure a private field and connection string from configuration.
Create register user model and register user result model in Visual Studio project, defining username, email, and password, then include user id, username, and email in the result.
hexadecimal is a positional system that represents numbers using a base of 16. it uses sixteen distinct symbols, most often the symbols "0"–"9" to represent values zero to nine, and "A"–"F" (or alternatively "a"–"f") to represent values ten to fifteen.
Don't forget to verify some user's email and to save some user's passwords before hashing them to test sign-in action method.
Create sql server stored procedure that takes an email, checks the users table for email, updates the code with a random value, and selects user id, email, and updated date.
Course Tools
SQL Server Management Studio.
Visual Studio.
Postman.
Advantages of this course :
- Learning in real app, where we design an API that meets business objectives.
Such way is considered to be a highly important learning process. Besides, it equips you with a knowledge that can be easily extended and integrated.
- Building Database first, this approach give the developer a lot of advantages like protect you from losing data, and easier to write SQL commands.
- Using C#, which is an object-oriented, component-oriented programming language that supported by Microsoft, and the best news that it will be immediately familiar to C, C++, Java, and JavaScript programmers.
And the most famous advantage of knowing C# is the expanded wideness to make mobile applications, web applications, games and more.
- Using Asp.Net Core, a free and open-source web framework developed by Microsoft. This framework allows us to include packages in our application which make it faster.
- Using Dapper, that is a tool which maps your database directly with C# objects. Fast in performance with fewer line of code.
- Using Json syntax, which is fast and readable way to exchange data between the server and our application, it’s actually a text that written with JavaScript object notation..