diff --git a/EntityFrameworkCore.Data/DeadBallZoneLeagueDbContext.cs b/EntityFrameworkCore.Data/DeadBallZoneLeagueDbContext.cs index fbeb099..b54e3e5 100644 --- a/EntityFrameworkCore.Data/DeadBallZoneLeagueDbContext.cs +++ b/EntityFrameworkCore.Data/DeadBallZoneLeagueDbContext.cs @@ -42,6 +42,13 @@ public class DeadBallZoneLeagueDbContext : DbContext .HasName("GetEarliestMatch"); } + protected override void ConfigureConventions(ModelConfigurationBuilder configurationBuilder) + { + // These apply to all the settings for all models. + configurationBuilder.Properties().HaveMaxLength(100); + configurationBuilder.Properties().HavePrecision(16, 2); + } + public override Task SaveChangesAsync(CancellationToken cancellationToken = default) { var entries = ChangeTracker.Entries().Where(