Skip to content

Commit

Permalink
add repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Tohirjon-Odilov committed Mar 3, 2024
1 parent 39cddbf commit c457d88
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Exam.StockManagement.Application.Abstractions;
using Exam.StockManagement.Application.Abstractions.IRepository;

Check failure on line 1 in Exam.StockManagement.Infrastructure/BaseRepositories/BaseRepository.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'IRepository' does not exist in the namespace 'Exam.StockManagement.Application.Abstractions' (are you missing an assembly reference?)
using Exam.StockManagement.Domain.Exceptions;
using Exam.StockManagement.Infrastructure.Persistance;
using Microsoft.EntityFrameworkCore;
using System;
Expand Down Expand Up @@ -53,7 +54,7 @@ public async Task<T> GetByAny(Expression<Func<T, bool>> expression)
return result;
} catch (Exception ex)
{
throw;
throw new NotFoundException();
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using Exam.StockManagement.Application.Abstractions.IRepository;

Check failure on line 1 in Exam.StockManagement.Infrastructure/BaseRepositories/CategoryRepository.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'IRepository' does not exist in the namespace 'Exam.StockManagement.Application.Abstractions' (are you missing an assembly reference?)
using Exam.StockManagement.Domain.Entities.Models;
using Exam.StockManagement.Infrastructure.Persistance;

namespace Exam.StockManagement.Infrastructure.BaseRepositories
{
public class CategoryRepository : BaseRepository<Category>, ICategoryRepository

Check failure on line 7 in Exam.StockManagement.Infrastructure/BaseRepositories/CategoryRepository.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'ICategoryRepository' could not be found (are you missing a using directive or an assembly reference?)
{
public CategoryRepository(StockManagementDbContext context) : base(context)
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using Exam.StockManagement.Application.Abstractions.IRepository;

Check failure on line 1 in Exam.StockManagement.Infrastructure/BaseRepositories/ProductRepository.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'IRepository' does not exist in the namespace 'Exam.StockManagement.Application.Abstractions' (are you missing an assembly reference?)
using Exam.StockManagement.Domain.Entities.Models;
using Exam.StockManagement.Infrastructure.Persistance;

namespace Exam.StockManagement.Infrastructure.BaseRepositories
{
public class ProductRepository : BaseRepository<Product>, IProductRepository

Check failure on line 7 in Exam.StockManagement.Infrastructure/BaseRepositories/ProductRepository.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'IProductRepository' could not be found (are you missing a using directive or an assembly reference?)
{
public ProductRepository(StockManagementDbContext context) : base(context)
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using Exam.StockManagement.Application.Abstractions.IRepository;

Check failure on line 1 in Exam.StockManagement.Infrastructure/BaseRepositories/StatsRepository.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'IRepository' does not exist in the namespace 'Exam.StockManagement.Application.Abstractions' (are you missing an assembly reference?)
using Exam.StockManagement.Domain.Entities.Models;
using Exam.StockManagement.Infrastructure.Persistance;

namespace Exam.StockManagement.Infrastructure.BaseRepositories
{
public class StatsRepository : BaseRepository<Stats>, IStatsService

Check failure on line 7 in Exam.StockManagement.Infrastructure/BaseRepositories/StatsRepository.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'IStatsService' could not be found (are you missing a using directive or an assembly reference?)
{
public StatsRepository(StockManagementDbContext context) : base(context)
{
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Exam.StockManagement.Application.Abstractions;
using Exam.StockManagement.Application.Abstractions.IRepository;

Check failure on line 1 in Exam.StockManagement.Infrastructure/BaseRepositories/UserRepository.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'IRepository' does not exist in the namespace 'Exam.StockManagement.Application.Abstractions' (are you missing an assembly reference?)
using Exam.StockManagement.Domain.Entities.Models;
using Exam.StockManagement.Infrastructure.Persistance;

Expand Down

0 comments on commit c457d88

Please sign in to comment.