Skip to content

Commit c353846

Browse files
author
raihanM95
committed
ProductRepository implemented
1 parent 89bdb8e commit c353846

File tree

4 files changed

+29
-8
lines changed

4 files changed

+29
-8
lines changed

Application/Application.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,4 @@
88
<ProjectReference Include="..\Domain\Domain.csproj" />
99
</ItemGroup>
1010

11-
<ItemGroup>
12-
<Folder Include="Interfaces\" />
13-
</ItemGroup>
14-
1511
</Project>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using Domain.Entities;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Text;
5+
6+
namespace Application.Interfaces
7+
{
8+
public interface IProductRepository : IRepositoryBase<Product>
9+
{
10+
}
11+
}

Infrastructure.Service/Infrastructure.Service.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@
44
<TargetFramework>netcoreapp3.1</TargetFramework>
55
</PropertyGroup>
66

7-
<ItemGroup>
8-
<Folder Include="Repositories\" />
9-
</ItemGroup>
10-
117
<ItemGroup>
128
<ProjectReference Include="..\Application\Application.csproj" />
9+
<ProjectReference Include="..\Domain\Domain.csproj" />
1310
<ProjectReference Include="..\Infrastructure.Persistence\Infrastructure.Persistence.csproj" />
1411
</ItemGroup>
1512

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using Application.Interfaces;
2+
using Domain.Entities;
3+
using Infrastructure.Persistence.Contexts;
4+
using System;
5+
using System.Collections.Generic;
6+
using System.Text;
7+
8+
namespace Infrastructure.Service.Repositories
9+
{
10+
public class ProductRepository : RepositoryBase<Product>, IProductRepository
11+
{
12+
public ProductRepository(RepositoryContext repositoryContext)
13+
: base(repositoryContext)
14+
{
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)