Files
masiton 4393977389
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m3s
Build and Push Docker Image / docker (push) Successful in 43s
Initial commit carried over from private repo. This is V2.
2025-07-04 21:24:12 +02:00

18 lines
489 B
C#

using MessengerApi.Db.Contracts.Repositories;
using MessengerApi.Db.Entities;
using Microsoft.EntityFrameworkCore;
namespace MessengerApi.Db.Repositories
{
public class UserRepository : Repository<User>, IUserRepository
{
public UserRepository(DbSet<User> db) : base(db)
{
}
public User SingleByApiKeyAndEnabled(Guid id, bool enabled)
{
return this.db.Single(x => x.ApiKey == id && x.IsEnabled == enabled);
}
}
}