Enforcing IAggregateRoot (#273)

- Enforcing it on the Async and EfRepositories
- Making CatalogBrand, Item, and Type AggregateRoots because they are
just lookup tables
This commit is contained in:
Eric Fleming authored and Steve Smith committed 2019-07-11 09:31:18 -04:00
1 parent 4706682973
commit 7c092ba5ad
6 files changed
+14 -54

No files matched your search

@@ -4,7 +4,7 @@ using System.Threading.Tasks;
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
{
public interface IAsyncRepository<T> where T : BaseEntity
public interface IAsyncRepository<T> where T : BaseEntity, IAggregateRoot
{
Task<T> GetByIdAsync(int id);
Task<IReadOnlyList<T>> ListAllAsync();