Created and implemented StockDal.InterFace
This commit is contained in:
@ -7,6 +7,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RepositoryPattern", "Reposi
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockDomain", "StockDomain\StockDomain.csproj", "{25899D94-D35E-44A1-BDD7-BDD5589DB2E0}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockDomain", "StockDomain\StockDomain.csproj", "{25899D94-D35E-44A1-BDD7-BDD5589DB2E0}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockDal.Interface", "StockDal.Interface\StockDal.Interface.csproj", "{65F33E97-16CF-471A-9C59-D0D17287856C}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@ -21,6 +23,10 @@ Global
|
|||||||
{25899D94-D35E-44A1-BDD7-BDD5589DB2E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{25899D94-D35E-44A1-BDD7-BDD5589DB2E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{25899D94-D35E-44A1-BDD7-BDD5589DB2E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{25899D94-D35E-44A1-BDD7-BDD5589DB2E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{25899D94-D35E-44A1-BDD7-BDD5589DB2E0}.Release|Any CPU.Build.0 = Release|Any CPU
|
{25899D94-D35E-44A1-BDD7-BDD5589DB2E0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{65F33E97-16CF-471A-9C59-D0D17287856C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{65F33E97-16CF-471A-9C59-D0D17287856C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{65F33E97-16CF-471A-9C59-D0D17287856C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{65F33E97-16CF-471A-9C59-D0D17287856C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using StockDal.Interface;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
|
|||||||
@ -6,6 +6,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Dapper;
|
using Dapper;
|
||||||
|
using StockDal.Interface;
|
||||||
using StockDomain;
|
using StockDomain;
|
||||||
|
|
||||||
namespace RepositoryPattern
|
namespace RepositoryPattern
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
using Autofac;
|
using Autofac;
|
||||||
|
using StockDal.Interface;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|||||||
@ -13,6 +13,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\StockDal.Interface\StockDal.Interface.csproj" />
|
||||||
<ProjectReference Include="..\StockDomain\StockDomain.csproj" />
|
<ProjectReference Include="..\StockDomain\StockDomain.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@ -1,17 +1,14 @@
|
|||||||
using StockDomain;
|
using StockDomain;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace RepositoryPattern
|
namespace StockDal.Interface
|
||||||
{
|
{
|
||||||
public interface IProductRepository
|
public interface IProductRepository
|
||||||
{
|
{
|
||||||
IEnumerable<Product> GetProducts();
|
IEnumerable<Product> GetProducts();
|
||||||
bool Insert(Product product);
|
bool Insert(Product product);
|
||||||
bool Update(Product product);
|
bool Update(Product product);
|
||||||
bool Delete(string productId);
|
bool Delete(string productId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
11
StockDal.Interface/StockDal.Interface.csproj
Normal file
11
StockDal.Interface/StockDal.Interface.csproj
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\StockDomain\StockDomain.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
Reference in New Issue
Block a user