Files
TenWholeYears.Server/RecNet.Infrastructure/Persistence/Repositories/GameVersionRepository.cs
2026-06-19 15:12:04 -05:00

11 lines
410 B
C#

using Microsoft.EntityFrameworkCore;
using RecNet.Domain.GameVersions;
namespace RecNet.Infrastructure.Persistence.Repositories;
public class GameVersionRepository(DatabaseContext dbContext) : IGameVersionRepository
{
public Task<GameVersion?> GetAsync(string version, CancellationToken ct = default)
=> dbContext.GameVersions
.FirstOrDefaultAsync(x => x.Version == version, ct);
}