Enhance CRUDRepository with conditional compilation

Added preprocessor directive for NET framework support.
Updated using directives to include repository and EF Core
namespaces. Adjusted code structure for improved compatibility.
This commit is contained in:
Developer 02 2025-09-30 18:18:14 +02:00
parent f1ab8db710
commit e0ca11ffc0

View File

@ -1,4 +1,5 @@
using DigitalData.Core.Abstraction.Application; #if NET
using DigitalData.Core.Abstraction.Application;
using DigitalData.Core.Abstraction.Application.Repository; using DigitalData.Core.Abstraction.Application.Repository;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
@ -111,3 +112,4 @@ namespace DigitalData.Core.Infrastructure
public virtual async Task<int> CountAsync(TId id) => await _dbSet.Where(e => e.GetId().Equals(id)).CountAsync(); public virtual async Task<int> CountAsync(TId id) => await _dbSet.Where(e => e.GetId().Equals(id)).CountAsync();
} }
} }
#endif