Skip to content

Instantly share code, notes, and snippets.

@filipececcon
Created July 25, 2017 16:22
Show Gist options
  • Save filipececcon/5ea236ce198bba90125dcf9de0addc65 to your computer and use it in GitHub Desktop.
Save filipececcon/5ea236ce198bba90125dcf9de0addc65 to your computer and use it in GitHub Desktop.
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