GitHub - vb33601/ASPNET-CRUD-MVC: Web app using MVC + C# + SQL Server + Entity Framework

In this project I used the follow technologies:

  • SQL Server Database
  • Entity Framework(ORM)
  • Razor
  • DataAnnotations
  • C#
  • NetCore 6.0
  • JavaScript
  • Authentication

First of all!

To execute this project you need a SQL Server Database (I used docker image!), then... install it.

Open appsettings.json and change the parameters Server=localhost;Database=Db_Contacts;User Id=sa;Password=bigStrongPwd

"ConnectionStrings": {
    "DataBase": "Server=localhost;Database=Db_Contacts;User Id=sa;Password=bigStrongPwd"
  }

Well, I'm using Entity Framework and code first we need to execute some commands to create the migrations and database automatically.

I called my database as DatabaseContext then we need to execute this command in Package Manager Console:

add-migration MyFirstMigration -Context DatabaseContext

after

Update-Database

NEW VERSION! with login!

watching

OLD-VERSION watching