using System.Collections.Generic; namespace Kit.Helpers.Repository { public interface IPersistentKey { TKey PersistentKey { get; } } public interface IInt32PersistenKey : IPersistentKey { } public interface ISelectRepository { IEnumerable Select(TFilter filter); int Count(TFilter filter); IEnumerable Select(TFilter filter, int page, int sizepage); } public class NothingFilter { } public interface IPersistentRepository : ISelectRepository { TKey Insert(TEntity entity); void Update(TKey key, TEntity entity); void Delete(TKey key); TEntity Get(TKey key); // IEnumerable Get(IEnumerable keys); } public interface IPersistentRepository : IPersistentRepository { } }