Refactored repositories and fixed service injections

This commit is contained in:
2019-04-23 22:52:58 +00:00
parent a437573af0
commit f9badf98f4
15 changed files with 80 additions and 78 deletions

View File

@@ -5,7 +5,7 @@ using System.Text;
namespace BrightGlimmer.Data.Interfaces
{
public interface IRepository<T>
public interface ICommandRepository<T>
{
IUnitOfWork UnitOfWork { get; }

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BrightGlimmer.Data.Interfaces
{
public interface IQueryRepository<T>
{
IUnitOfWork UnitOfWork { get; }
IQueryable<T> Get();
T Get(Guid id);
}
}