Removed some dead code on the interfaces. Introduced UnitOfWork to simplify repo injection.
This commit is contained in:
parent
4a2296a18a
commit
825afd83a2
23 changed files with 165 additions and 204 deletions
|
|
@ -17,14 +17,13 @@ namespace API.Extensions
|
|||
{
|
||||
services.AddAutoMapper(typeof(AutoMapperProfiles).Assembly);
|
||||
services.AddScoped<ITaskScheduler, TaskScheduler>();
|
||||
services.AddScoped<IUserRepository, UserRepository>();
|
||||
services.AddScoped<IDirectoryService, DirectoryService>();
|
||||
services.AddScoped<ITokenService, TokenService>();
|
||||
services.AddScoped<ICacheService, CacheService>();
|
||||
services.AddScoped<ISeriesRepository, SeriesRepository>();
|
||||
services.AddScoped<IDirectoryService, DirectoryService>();
|
||||
services.AddScoped<ILibraryRepository, LibraryRepository>();
|
||||
|
||||
|
||||
services.AddScoped<IUnitOfWork, UnitOfWork>();
|
||||
|
||||
|
||||
|
||||
services.AddDbContext<DataContext>(options =>
|
||||
{
|
||||
options.UseSqlite(config.GetConnectionString("DefaultConnection"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue