17 Commits

Author SHA1 Message Date
dd195dfddf Add custom SQL to create a view for Teams and Leagues with migration.
Also state that this view is keyless.
2025-04-07 20:10:53 +02:00
64965c3fef Update League model with initialized empty Teams list and no longer be nullable. 2025-04-07 13:50:41 +02:00
b0e653ab0d Add one to one relationship between Coach and Team.
A Coach is parent, Team is child.
A Coach can exist on his own, without a Team, but a Team cannot play without a Coach.
2025-04-07 11:21:48 +02:00
804943486f Add relationship and foreign key configurations between Match and Team. 2025-04-07 11:09:42 +02:00
e852f09f09 Make relation of League to Team nullable. 2025-04-07 10:44:41 +02:00
a0733b4ebb Add relationship between League and Team. 2025-04-07 10:43:14 +02:00
48afe784d6 Add TeamId to Coach model. 2025-04-07 10:16:41 +02:00
808a6d6a3e Add Name property to League model. 2025-04-06 20:30:17 +02:00
278064b19b Remove Team ID from Team model.
This is done to create a proper change to let Id now be the Primary Key.
2025-04-06 20:10:36 +02:00
f137595a5a Add migration to add Match and League entities. 2025-04-06 20:06:01 +02:00
cccd9ba8e0 Change BaseDomainModel properties CreatedBy and ModifiedBy to be nullable. 2025-04-06 11:51:15 +02:00
63a09998ac Add auditable properties to BaseDomainModel. 2025-04-06 11:35:38 +02:00
4175eea10c Provide Team model with LeagueId and CoachId. 2025-04-06 11:35:10 +02:00
2477d2b080 Create new domain models for Match and League. 2025-04-06 11:34:53 +02:00
ba3c65d7a1 Move Id to BaseDomainModel and replace TeamId with regular Id. 2025-04-06 11:27:13 +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