Lots of data and model setup
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SVSim.Database.Models;
|
||||
|
||||
namespace SVSim.Database.Repositories.Collectibles;
|
||||
|
||||
public class CollectionRepository : ICollectionRepository
|
||||
{
|
||||
private readonly SVSimDbContext _dbContext;
|
||||
|
||||
public CollectionRepository(SVSimDbContext dbContext)
|
||||
{
|
||||
_dbContext = dbContext;
|
||||
}
|
||||
|
||||
public async Task<List<LeaderSkinEntry>> GetLeaderSkins()
|
||||
{
|
||||
return await _dbContext.Set<LeaderSkinEntry>().AsNoTracking().Include(skin => skin.Class).ToListAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user