From 4de45ac7363c548189e110062ca5dcde2dc2928b Mon Sep 17 00:00:00 2001 From: Martyn Whitwell Date: Thu, 9 Jan 2025 15:58:04 +0000 Subject: [PATCH] rollback whitespace changes --- .../Database/GetIntoTeachingDbContext.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/GetIntoTeachingApi/Database/GetIntoTeachingDbContext.cs b/GetIntoTeachingApi/Database/GetIntoTeachingDbContext.cs index e5c62e4e2..d03de9f9c 100644 --- a/GetIntoTeachingApi/Database/GetIntoTeachingDbContext.cs +++ b/GetIntoTeachingApi/Database/GetIntoTeachingDbContext.cs @@ -17,21 +17,21 @@ public class GetIntoTeachingDbContext : DbContext public GetIntoTeachingDbContext(DbContextOptions options) : base(options) - { + { ConfigureNpgsql(); } - public static void ConfigureNpgsql() - { + public static void ConfigureNpgsql() + { AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); - AppContext.SetSwitch("Npgsql.DisableDateTimeInfinityConversions", true); + AppContext.SetSwitch("Npgsql.DisableDateTimeInfinityConversions", true); } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().HasOne(c => c.Building).WithMany(b => b.TeachingEvents) .HasForeignKey(e => e.BuildingId).OnDelete(DeleteBehavior.SetNull); - modelBuilder.Entity().HasKey(t => new { t.Id, t.EntityName, t.AttributeName }); + modelBuilder.Entity().HasKey(t => new { t.Id, t.EntityName, t.AttributeName }); } } }