From 2cedfbe91bf618157d0278d33c1ec32f955a5975 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Tue, 30 Sep 2025 17:49:26 +0200 Subject: [PATCH] Add conditional compilation for IRepositoryFactory Updated the namespace declaration in `IRepositoryFactory.cs` to support conditional compilation for .NET and .NET Framework. The `Get()` method now conditionally includes the `public` access modifier based on the target framework. Adjusted the interface structure to ensure proper compilation and organization. --- .../Repository/IRepositoryFactory.cs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/DigitalData.Core.Abstraction.Application/Repository/IRepositoryFactory.cs b/DigitalData.Core.Abstraction.Application/Repository/IRepositoryFactory.cs index 8f16160..d77db0f 100644 --- a/DigitalData.Core.Abstraction.Application/Repository/IRepositoryFactory.cs +++ b/DigitalData.Core.Abstraction.Application/Repository/IRepositoryFactory.cs @@ -1,6 +1,18 @@ -namespace DigitalData.Core.Abstraction.Application.Repository; +namespace DigitalData.Core.Abstraction.Application.Repository +#if NET + ; +#elif NETFRAMEWORK + { +#endif public interface IRepositoryFactory { - public IRepository Get(); -} \ No newline at end of file +#if NET + public +#endif + IRepository Get(); +} + +#if NETFRAMEWORK + } +#endif \ No newline at end of file