15 Commits

Author SHA1 Message Date
2d14366feb Add retry option for SQL server example. 2025-04-14 22:33:02 +02:00
2a09ddb0da Add concurrency checks.
See also:
https://learn.microsoft.com/en-us/ef/core/saving/concurrency?tabs=data-annotations
2025-04-14 22:10:45 +02:00
feafaba447 Override ConfigureConventions to apply global restrictions on models. 2025-04-14 21:49:18 +02:00
5b90fa1242 Override SaveChangesAsync to automatically add audit data. 2025-04-14 17:12:15 +02:00
8fc6bc96c0 Create new DbContext constructor with external Options.
And install related packages.
2025-04-14 10:50:13 +02:00
001e78736c Add example user-defined function. 2025-04-08 22:35:20 +02:00
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
7f5ecb9d3a Add Configurations for Teams and Leagues. 2025-04-06 21:06:59 +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
1aae643a78 Add example query with tracking disabled.
This can also be done globally, see context file.
2025-04-05 21:29:48 +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
a8b59a8ca2 Create DbContext file. 2025-04-04 17:21:16 +02:00