11 lines
410 B
C#
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);
|
|
} |