Guest User

Untitled

a guest
Dec 2nd, 2013
34
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Linq;
  3. using System.Linq.Expressions;
  4.  
  5. namespace Repository.Interfaces
  6. {
  7.    /// <summary>
  8.    /// Defines interface for common data access functionality for entity.
  9.    /// </summary>
  10.    /// <typeparam name="TEntity">Type of entity.</typeparam>
  11.    public interface IBaseRepository<TEntity> where TEntity : class
  12.    {
  13.       TEntity Create(TEntity entity);
  14.  
  15.       void Update(TEntity entity);
  16.  
  17.       void Delete(TEntity entity);
  18.  
  19.       IQueryable<TEntity> Get(Expression<Func<TEntity, bool>> filter);
  20.  
  21.       IQueryable<TEntity> GetAll();
  22.  
  23.       RepositoryQuery<TEntity> Query();
  24.    }
  25. }
RAW Paste Data