Created and implemented StockDal.InterFace

This commit is contained in:
2021-01-09 17:28:21 +01:00
parent e8780176e5
commit 4c069298f2
7 changed files with 24 additions and 6 deletions

View File

@ -1,4 +1,5 @@
using System;
using StockDal.Interface;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View File

@ -1,17 +0,0 @@
using StockDomain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RepositoryPattern
{
public interface IProductRepository
{
IEnumerable<Product> GetProducts();
bool Insert(Product product);
bool Update(Product product);
bool Delete(string productId);
}
}

View File

@ -6,6 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dapper;
using StockDal.Interface;
using StockDomain;
namespace RepositoryPattern

View File

@ -1,4 +1,5 @@
using Autofac;
using StockDal.Interface;
using System;
using System.Collections.Generic;
using System.Linq;

View File

@ -13,6 +13,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\StockDal.Interface\StockDal.Interface.csproj" />
<ProjectReference Include="..\StockDomain\StockDomain.csproj" />
</ItemGroup>