Lots of data and model setup

This commit is contained in:
gamer147
2025-05-18 02:27:17 -04:00
parent 79505e0c1a
commit b2024af852
77 changed files with 81988 additions and 433 deletions

View File

@@ -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();
}
}

View File

@@ -0,0 +1,8 @@
using SVSim.Database.Models;
namespace SVSim.Database.Repositories.Collectibles;
public interface ICollectionRepository
{
Task<List<LeaderSkinEntry>> GetLeaderSkins();
}