Add conditional compilation for IRepositoryFactory

Updated the namespace declaration in `IRepositoryFactory.cs` to support conditional compilation for .NET and .NET Framework. The `Get<TEntity>()` method now conditionally includes the `public` access modifier based on the target framework. Adjusted the interface structure to ensure proper compilation and organization.
This commit is contained in:
Developer 02 2025-09-30 17:49:26 +02:00
parent d4d1d2b69f
commit 2cedfbe91b

View File

@ -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 interface IRepositoryFactory
{ {
public IRepository<TEntity> Get<TEntity>(); #if NET
public
#endif
IRepository<TEntity> Get<TEntity>();
} }
#if NETFRAMEWORK
}
#endif