From 2bf2bb2276988d37cc8d6ace6b481fed2aff5574 Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 19 Dec 2025 09:51:22 +0100 Subject: [PATCH] Refactor namespace and add System.Linq import Removed conditional compilation around the namespace in DbRepository.cs, making it always use standard braces. Added System.Linq using directive to support LINQ operations. --- DigitalData.Core.Infrastructure/DbRepository.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/DigitalData.Core.Infrastructure/DbRepository.cs b/DigitalData.Core.Infrastructure/DbRepository.cs index 6771a73..d5dd35c 100644 --- a/DigitalData.Core.Infrastructure/DbRepository.cs +++ b/DigitalData.Core.Infrastructure/DbRepository.cs @@ -13,12 +13,7 @@ using System.Threading.Tasks; #endif namespace DigitalData.Core.Infrastructure -#if NET - ; -#elif NETFRAMEWORK - { -#endif - +{ public class DbRepository where TDbContext : DbContext { protected internal readonly TDbContext Context; @@ -155,6 +150,4 @@ namespace DigitalData.Core.Infrastructure public virtual IQueryable ReadOnly() => Entities.AsNoTracking(); #endregion } -#if NETFRAMEWORK - } -#endif \ No newline at end of file +} \ No newline at end of file