Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add service #7

Merged
merged 1 commit into from
Mar 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 All @@ -8,7 +9,7 @@

namespace Exam.StockManagement.Infrastructure.BaseRepositories
{
public class BaseRepository<T> : IBaseRepository<T> where T : class

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

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'IBaseRepository<>' could not be found (are you missing a using directive or an assembly reference?)
{
private readonly StockManagementDbContext _context;
private readonly DbSet<T> _dbSet;
Expand Down Expand Up @@ -53,7 +54,7 @@
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,10 +1,10 @@
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;

namespace Exam.StockManagement.Infrastructure.BaseRepositories
{
public class UserRepository : BaseRepository<User>, IUserRepository

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

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'IUserRepository' could not be found (are you missing a using directive or an assembly reference?)
{
public UserRepository(StockManagementDbContext context) : base(context)
{
Expand Down
Loading