You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
677 B

11 years ago
11 years ago
11 years ago
11 years ago
  1. using System.Data.Entity.Core.Objects;
  2. using System.Linq;
  3. namespace Sevomin.Models.Repositories
  4. {
  5. public interface IRepository<K, T>
  6. {
  7. void Add(T entity);
  8. T Find(K identifier);
  9. void Delete(T entity);
  10. void Save();
  11. }
  12. public interface IUserRepository : IRepository<string, User>
  13. {
  14. }
  15. public interface IJobRepository : IRepository<long ,Job>
  16. {
  17. Job GetEmptyJobFor(Avalin avalin);
  18. IQueryable<Job> ListAll();
  19. }
  20. public interface IParameterRepository : IRepository<long, Parameter>
  21. {
  22. IQueryable<Parameter> ListAll();
  23. void AddParametersToDovomin(Dovomin dovomin);
  24. }
  25. }