77 Commits

Author SHA1 Message Date
1aae643a78 Add example query with tracking disabled.
This can also be done globally, see context file.
2025-04-05 21:29:48 +02:00
51eb8b117a Add examples with selecting specific columns and using a DTO. 2025-04-05 20:54:19 +02:00
b715fd3150 Add example skip-and-take query function. 2025-04-05 18:42:59 +02:00
f4978d215e Add example functions for ordered and grouped queries. 2025-04-05 18:31:55 +02:00
e542616532 Add example counting query functions. 2025-04-05 17:49:45 +02:00
2ef3859d2a Add example basic query functions. 2025-04-05 17:23:44 +02:00
61b0e99f94 Create example queries in Console project. 2025-04-05 00:19:28 +02:00
23a75282c1 Update README file. 2025-04-04 23:31:13 +02:00
25ede5cc28 Add logging to Entity Framework Core workload. 2025-04-04 20:12:03 +02:00
6e0167a051 Seed database with Teams. 2025-04-04 19:36:19 +02:00
451fb50cd8 Add comment to DbContext about where the database file is created. 2025-04-04 17:58:59 +02:00
5b3c661b67 Create initial migration.
deadballzone/EntityFrameworkCore.Console(master)$
dotnet ef migrations add InitialMigration --startup-project ./ --project ../EntityFrameworkCore.Data
2025-04-04 17:28:08 +02:00
de4c0d390c Update README. 2025-04-04 17:21:24 +02:00
a8b59a8ca2 Create DbContext file. 2025-04-04 17:21:16 +02:00
f58f92d0e0 Install Sqlite database provider for Entity Framework in Data project. 2025-04-04 17:20:57 +02:00
a53348294e Add reference to Data for the Console project. 2025-04-04 17:15:01 +02:00
a1b318e8bc Install Microsoft.EntityFrameworkCore.Design NuGet package 9.0.3 version in the Console project.
dotnet add package Microsoft.EntityFrameworkCore.Design --version 9.0.3
2025-04-04 17:12:49 +02:00
f1c4f4dda4 Add empty Console project to solution.
dotnet new console -n EntityFrameworkCore.Console
dotnet sln add EntityFrameworkCore.Console/EntityFrameworkCore.Console.csproj
2025-04-04 17:04:09 +02:00
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
7bbe486bea Add Data and Domain projects to solution.
dotnet sln add EntityFrameworkCore.Data/EntityFrameworkCore.Data.csproj
dotnet sln add EntityFrameworkCore.Domain/EntityFrameworkCore.Domain.csproj
2025-04-04 16:09:04 +02:00
c8b1f5c391 Create a clean solution and move all files.
dotnet new sln -n deadballzone
2025-04-04 16:06:58 +02:00
3db3e262e1 Install Entity Framework Core NuGet package in Data project instead of solution.
dotnet remove package Microsoft.EntityFrameworkCore
cd EntityFrameworkCore.Data/
dotnet add package Microsoft.EntityFrameworkCore --version 9.0.3
2025-04-04 15:57:34 +02:00
28e6e98e93 Install NuGet package Entity Framework Core 9.0.3 version in solution. 2025-04-04 15:54:56 +02:00
3fae448287 Add initial README. 2025-04-04 15:54:24 +02:00
5e688a24d5 Add models for BaseDomainModel, Coach and Team. 2025-04-04 15:41:45 +02:00
62ae17f271 Create empty class libraries Data and Domain and add to solution.
dotnet new web
dotnet new classlib -o EntityFrameworkCore.Data
dotnet new classlib -o EntityFrameworkCore.Domain
dotnet sln add EntityFrameworkCore.Data/EntityFrameworkCore.Data.csproj
dotnet sln add EntityFrameworkCore.Domain/EntityFrameworkCore.Domain.csproj
2025-04-04 14:47:31 +02:00
e7e31f7f54 Initial commit with empty project. 2025-04-04 14:23:47 +02:00