SES-152 Add Repositories for Shopkeepers

This commit is contained in:
Karol Górzyński 2021-01-20 18:52:53 +01:00
parent 3fcc2d77b0
commit 8fe7584682
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,16 @@
using SessionCompanion.Database.Repositories.Base;
using SessionCompanion.Database.Tables;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SessionCompanion.Database.Repositories
{
public class ShopkeeperItemRepository : Repository<ShopkeeperItem>, IRepository<ShopkeeperItem>
{
public ShopkeeperItemRepository(ApplicationDbContext _dbContext) : base(_dbContext)
{ }
}
}

View File

@ -0,0 +1,16 @@
using SessionCompanion.Database.Repositories.Base;
using SessionCompanion.Database.Tables;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SessionCompanion.Database.Repositories
{
public class ShopkeeperRepository : Repository<Shopkeeper>, IRepository<Shopkeeper>
{
public ShopkeeperRepository(ApplicationDbContext _dbContext) : base(_dbContext)
{ }
}
}

View File

@ -43,6 +43,8 @@ namespace SessionCompanion.Configurations
services.AddScoped<IRepository<Monster>, MonsterRepository>();
services.AddScoped<IRepository<MonsterSpecialAbility>, MonsterSpecialAbilitiesRepository>();
services.AddScoped<IRepository<SpecialAbility>, SpecialAbilityRepository>();
services.AddScoped<IRepository<Shopkeeper>, ShopkeeperRepository>();
services.AddScoped<IRepository<ShopkeeperItem>, ShopkeeperItemRepository>();
return services;
}
}