|
|
@ -1,17 +0,0 @@ |
|
|
|
using System.Data.Entity.Core.Objects; |
|
|
|
|
|
|
|
namespace Sevomin.Models.Repository |
|
|
|
{ |
|
|
|
public interface IRepository<K, T> |
|
|
|
{ |
|
|
|
void Add(T entity); |
|
|
|
T Find(K identifier); |
|
|
|
void Delete(T entity); |
|
|
|
void Save(SaveOptions options = SaveOptions.AcceptAllChangesAfterSave); |
|
|
|
} |
|
|
|
|
|
|
|
public interface IUserRepository : IRepository<string, User> |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
} |