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
382 B

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>
{
}
}