Made with ASP.NET, FluentAPI to manage a SQL database and layers architecture.
- Data persistence with SQL Server.
- Home page to see all the Pokemons created.
- Filter Pokemons in home page by name and region.
- Pokemons, Regions and Types maintenance pages to perform CRUD operations.
- Form validations.
- Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation - Version 5.0.17
- Microsoft.EntityFrameworkCore.Design - Version 5.0.17
- Microsoft.EntityFrameworkCore.SqlServer - Version 5.0.17
- Microsoft.EntityFrameworkCore.Tools - Version 5.0.17
- Microsoft.EntityFrameworkCore.Relational - Version 5.0.17
-
Create a SQL Server database.
-
Open solution in Visual Studio and edit the
ConnectionStrings
section onappsettings.json
inPokedexWebApp
layer.
"ConnectionStrings": {
"DefaultConnection": "Server=localhost,PortNumber;Database=DatabaseName;User=DatabaseUser;Password=DatabasePassword;Trusted_Connection=false;MultipleActiveResultSets=true"
}
- Run migrations.
- On Windows: Open
Package Console
and run:
Add-Migration "First migration"
Update-Database
- On Linux/MacOS: Install .NET Core CLI tools and run in terminal:
dotnet ef --startup-project ./PokedexWebApp/ migrations add Initial
dotnet ef --startup-project ./PokedexWebApp/ database update
- Run the project.
MIT License
Copyright (c) 2022 Anibal Ventura