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.

17 lines
384 B

11 years ago
  1. using System.Data.Entity.Core.Objects;
  2. namespace Sevomin.Models.Repositories
  3. {
  4. public interface IRepository<K, T>
  5. {
  6. void Add(T entity);
  7. T Find(K identifier);
  8. void Delete(T entity);
  9. void Save(SaveOptions options = SaveOptions.AcceptAllChangesAfterSave);
  10. }
  11. public interface IUserRepository : IRepository<string, User>
  12. {
  13. }
  14. }