using System.Data.Entity.Core.Objects;
|
|
using System.Linq;
|
|
|
|
namespace Sevomin.Models.Repositories
|
|
{
|
|
public interface IRepository<K, T>
|
|
{
|
|
void Add(T entity);
|
|
T Find(K identifier);
|
|
void Delete(T entity);
|
|
void Save();
|
|
}
|
|
|
|
public interface IUserRepository : IRepository<string, User>
|
|
{
|
|
|
|
}
|
|
|
|
public interface IJobRepository : IRepository<long ,Job>
|
|
{
|
|
Job GetEmptyJobFor(Avalin avalin);
|
|
IQueryable<Job> ListAll();
|
|
}
|
|
|
|
public interface IParameterRepository : IRepository<long, Parameter>
|
|
{
|
|
IQueryable<Parameter> ListAll();
|
|
}
|
|
}
|