Refactored repositories and fixed service injections
This commit is contained in:
@@ -5,7 +5,7 @@ using System.Text;
|
||||
|
||||
namespace BrightGlimmer.Data.Interfaces
|
||||
{
|
||||
public interface IRepository<T>
|
||||
public interface ICommandRepository<T>
|
||||
{
|
||||
IUnitOfWork UnitOfWork { get; }
|
||||
|
||||
16
BrightGlimmer.Data/Interfaces/IQueryRepository.cs
Normal file
16
BrightGlimmer.Data/Interfaces/IQueryRepository.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user