using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace Church.Net.DAL.Core { public interface IRepository:IDisposable where T:class { void InitializeConnectionString(string connString); void Add(T obj); void Edit(T obj); void Delete(T id); void Attach(T obj); T GetSingle(); T GetSingle(Expression> whereCondition); IList GetAll(); IList GetAll(Expression> whereCondition); IQueryable GetQueryable(); IQueryable GetQueryable(Expression> whereCondition); } }