Add GameVersion domain and login validation
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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);
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using RecNet.Domain.Common;
|
||||
using RecNet.Domain.Entities.Profiles;
|
||||
using RecNet.Domain.Repositories;
|
||||
using RecNet.Domain.Profiles;
|
||||
|
||||
namespace RecNet.Infrastructure.Persistence.Repositories;
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Storage;
|
||||
using RecNet.Domain.Entities.Configuration;
|
||||
using RecNet.Domain.Repositories;
|
||||
using RecNet.Domain.Configuration;
|
||||
|
||||
namespace RecNet.Infrastructure.Persistence.Repositories;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user