From 28e415dee13b8760669926650339c64847c342d5 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Tue, 30 Sep 2025 17:50:53 +0200 Subject: [PATCH] Add .NET Framework support in Extensions.cs Introduce conditional compilation directives for the .NET Framework, including necessary using statements and a modified namespace declaration. Add a closing brace for the class definition to ensure compatibility across different target frameworks. --- .../Repository/Extensions.cs | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/DigitalData.Core.Abstraction.Application/Repository/Extensions.cs b/DigitalData.Core.Abstraction.Application/Repository/Extensions.cs index 7f33c12..32a3d87 100644 --- a/DigitalData.Core.Abstraction.Application/Repository/Extensions.cs +++ b/DigitalData.Core.Abstraction.Application/Repository/Extensions.cs @@ -1,7 +1,19 @@ using System.Linq.Expressions; using DigitalData.Core.Abstractions.Interfaces; +#if NETFRAMEWORK +using System; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +using System.Linq; +#endif -namespace DigitalData.Core.Abstraction.Application.Repository; +namespace DigitalData.Core.Abstraction.Application.Repository +#if NET + ; +#elif NETFRAMEWORK + { +#endif public static class Extensions { @@ -60,4 +72,8 @@ public static class Extensions => repository.Entity().DeleteAsync(query, cancel); #endregion #endregion -} \ No newline at end of file +} + +#if NETFRAMEWORK + } +#endif \ No newline at end of file