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.
		
		
		
		
		
			
		
			
				
					
					
						
							18 lines
						
					
					
						
							519 B
						
					
					
				
			
		
		
	
	
							18 lines
						
					
					
						
							519 B
						
					
					
				using System;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Linq.Expressions;
 | 
						|
 | 
						|
namespace PEIS.Repositories
 | 
						|
{
 | 
						|
    public interface IRepository<TEntity> where TEntity :class
 | 
						|
    {
 | 
						|
        TEntity Get(int id);
 | 
						|
        IEnumerable<TEntity> GetAll();
 | 
						|
        IEnumerable<TEntity> Find(Expression<Func<TEntity, bool>> predicate);
 | 
						|
        void Add(TEntity entity);
 | 
						|
        void AddRange(IEnumerable<TEntity> entities);
 | 
						|
 | 
						|
        void Remove(TEntity entity);
 | 
						|
        void RemoveRange(IEnumerable<TEntity> entities);
 | 
						|
    }
 | 
						|
}
 | 
						|
 |