From 64965c3fef4e88ca3d291d4bf234f8bac2b7158a Mon Sep 17 00:00:00 2001 From: Kevin Matsubara Date: Mon, 7 Apr 2025 13:50:41 +0200 Subject: [PATCH] Update League model with initialized empty Teams list and no longer be nullable. --- EntityFrameworkCore.Domain/League.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EntityFrameworkCore.Domain/League.cs b/EntityFrameworkCore.Domain/League.cs index 9ef4800..030a08a 100644 --- a/EntityFrameworkCore.Domain/League.cs +++ b/EntityFrameworkCore.Domain/League.cs @@ -3,5 +3,5 @@ public class League : BaseDomainModel { public string? Name { get; set; } - public List? Teams { get; set; } + public List Teams { get; set; } = new List() { }; }