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.
This commit is contained in:
2025-12-19 09:51:22 +01:00
parent 6717aa37ab
commit 2bf2bb2276

View File

@@ -13,12 +13,7 @@ using System.Threading.Tasks;
#endif
namespace DigitalData.Core.Infrastructure
#if NET
;
#elif NETFRAMEWORK
{
#endif
{
public class DbRepository<TDbContext> where TDbContext : DbContext
{
protected internal readonly TDbContext Context;
@@ -155,6 +150,4 @@ namespace DigitalData.Core.Infrastructure
public virtual IQueryable<TEntity> ReadOnly() => Entities.AsNoTracking();
#endregion
}
#if NETFRAMEWORK
}
#endif
}