Created
July 25, 2017 16:22
-
-
Save filipececcon/5ea236ce198bba90125dcf9de0addc65 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq.Expressions; | |
using Domain.Entities; | |
namespace Domain.Contracts | |
{ | |
public interface IRepositoryBase<TEntity> where TEntity : BaseEntity | |
{ | |
IEnumerable<TEntity> GetAll(); | |
TEntity GetById(int id); | |
void Insert(ref TEntity entity); | |
bool Update(TEntity entity); | |
bool Delete(Int32 id); | |
IEnumerable<TEntity> GetList(Expression<Func<TEntity, bool>> predicate); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment