Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Linq.Expressions;
- namespace Repository.Interfaces
- {
- /// <summary>
- /// Defines interface for common data access functionality for entity.
- /// </summary>
- /// <typeparam name="TEntity">Type of entity.</typeparam>
- public interface IBaseRepository<TEntity> where TEntity : class
- {
- TEntity Create(TEntity entity);
- void Update(TEntity entity);
- void Delete(TEntity entity);
- IQueryable<TEntity> Get(Expression<Func<TEntity, bool>> filter);
- IQueryable<TEntity> GetAll();
- RepositoryQuery<TEntity> Query();
- }
- }
RAW Paste Data