7.2.1 Creating an Abstract Repository; Listing 7-4. The Contents of the IProductRepository.cs

chap07
Jason Zhu 2021-09-08 10:31:09 +10:00
parent a6eb8237d4
commit 889b3e7c49
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SportsStore.Domain.Entities;
namespace SportsStore.Domain.Abstract
{
public interface IProductRepository
{
IEnumerable<Product> Products { get; }
}
}

View File

@ -63,6 +63,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Abstract\IProductRepository.cs" />
<Compile Include="Entities\Product.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>