using FlowAPI.Application.Interfaces; using FlowAPI.Domain.Entities; using FlowAPI.Infrastructure.Data; using Microsoft.EntityFrameworkCore; namespace FlowAPI.Infrastructure.Repositories { public class EdgeRepository : GenericRepository, IEdgeRepository { public EdgeRepository(AppDbContext context) : base(context) { } public async Task> GetAllByGraphIdAsync(Guid graphId) { return await _dbSet .Where(e => e.GraphId == graphId) .AsNoTracking() .ToListAsync(); } } }