Created and implemented StockDal.InterFace
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using StockDal.Interface;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
@ -6,6 +6,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Dapper;
|
||||
using StockDal.Interface;
|
||||
using StockDomain;
|
||||
|
||||
namespace RepositoryPattern
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using Autofac;
|
||||
using StockDal.Interface;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -13,6 +13,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\StockDal.Interface\StockDal.Interface.csproj" />
|
||||
<ProjectReference Include="..\StockDomain\StockDomain.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user