From 8fe7584682e5ebcc2d8fcc7d06cf348b0042c300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20G=C3=B3rzy=C5=84ski?= Date: Wed, 20 Jan 2021 18:52:53 +0100 Subject: [PATCH] SES-152 Add Repositories for Shopkeepers --- .../Repositories/ShopkeeperItemRepository.cs | 16 ++++++++++++++++ .../Repositories/ShopkeeperRepository.cs | 16 ++++++++++++++++ .../Configurations/RepositoryConfiguration.cs | 2 ++ 3 files changed, 34 insertions(+) create mode 100644 SessionCompanion/SessionCompanion.Database/Repositories/ShopkeeperItemRepository.cs create mode 100644 SessionCompanion/SessionCompanion.Database/Repositories/ShopkeeperRepository.cs diff --git a/SessionCompanion/SessionCompanion.Database/Repositories/ShopkeeperItemRepository.cs b/SessionCompanion/SessionCompanion.Database/Repositories/ShopkeeperItemRepository.cs new file mode 100644 index 0000000..3869afa --- /dev/null +++ b/SessionCompanion/SessionCompanion.Database/Repositories/ShopkeeperItemRepository.cs @@ -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, IRepository + { + public ShopkeeperItemRepository(ApplicationDbContext _dbContext) : base(_dbContext) + { } + } +} diff --git a/SessionCompanion/SessionCompanion.Database/Repositories/ShopkeeperRepository.cs b/SessionCompanion/SessionCompanion.Database/Repositories/ShopkeeperRepository.cs new file mode 100644 index 0000000..c50344a --- /dev/null +++ b/SessionCompanion/SessionCompanion.Database/Repositories/ShopkeeperRepository.cs @@ -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, IRepository + { + public ShopkeeperRepository(ApplicationDbContext _dbContext) : base(_dbContext) + { } + } +} diff --git a/SessionCompanion/SessionCompanion/Configurations/RepositoryConfiguration.cs b/SessionCompanion/SessionCompanion/Configurations/RepositoryConfiguration.cs index 3ae65db..a123298 100644 --- a/SessionCompanion/SessionCompanion/Configurations/RepositoryConfiguration.cs +++ b/SessionCompanion/SessionCompanion/Configurations/RepositoryConfiguration.cs @@ -43,6 +43,8 @@ namespace SessionCompanion.Configurations services.AddScoped, MonsterRepository>(); services.AddScoped, MonsterSpecialAbilitiesRepository>(); services.AddScoped, SpecialAbilityRepository>(); + services.AddScoped, ShopkeeperRepository>(); + services.AddScoped, ShopkeeperItemRepository>(); return services; } }