Files
SVSimServer/SVSim.Database/Repositories/BaseRepository.cs
2025-05-18 02:27:17 -04:00

15 lines
357 B
C#

using Microsoft.EntityFrameworkCore;
namespace SVSim.Database.Repositories;
public abstract class BaseRepository<T> where T : class
{
protected readonly SVSimDbContext DbContext;
protected readonly DbSet<T> DbSet;
public BaseRepository(SVSimDbContext dbContext)
{
DbContext = dbContext;
DbSet = DbContext.Set<T>();
}
}