Kevin Matsubara 601aff07c1 Add reference to Domain for the Data project.
Note that this command, did not work in Ubuntu. I just added the html to the project file myself.

dotnet reference add

https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-reference-add
2025-04-04 16:25:46 +02:00
2025-04-04 14:23:47 +02:00
2025-04-04 15:54:24 +02:00

Entity Framework - Dead Ball Zone

This is a practice project to learn Entity Framework.

Using the 1998 game Dead Ball Zone for inspiration.

.NET commands:

NuGet commands

Install Entity Framework Core NuGet package:

dotnet add package Microsoft.EntityFrameworkCore --version 9.0.3

Creation commands

To list all available templates:

dotnet new -l

New class:

dotnet new class -n MyClass

adding to an existing solution:

dotnet sln add Data/Data.csproj

Terms

A database-context is an abstraction of the database structure in code.

  • It lists the models and their database table names.
  • It instantiates a database connection during the runtime of the application.
  • Allows configurations to be made in code.
Description
This is a practice project to learn Entity Framework.
Readme 211 KiB
Languages
C# 100%