Spaces:
Running
Running
| using FlowAPI.Application.Interfaces; | |
| using FlowAPI.Domain.Entities; | |
| using FlowAPI.Infrastructure.Data; | |
| using Microsoft.EntityFrameworkCore; | |
| namespace FlowAPI.Infrastructure.Repositories | |
| { | |
| public class TaskNodeRepository : GenericRepository<TaskNode>, ITaskNodeRepository | |
| { | |
| public TaskNodeRepository(AppDbContext context) : base(context) { } | |
| public async Task<IEnumerable<TaskNode>> GetAllByGraphIdAsync(Guid graphId) | |
| { | |
| return await _dbSet | |
| .Where(n => n.GraphId == graphId) | |
| .AsNoTracking() | |
| .ToListAsync(); | |
| } | |
| } | |
| } | |