According to MS here it does not:
This is to avoid the following:
public interface IRepository<T>
{
void Insert(T entity);
void Delete(T entity);
IQueryable<T> SearchFor(Expression<Func<T, bool>> predicate);
IQueryable<T> GetAll();
T GetById(int id);
}
… when implementing the repository and UoW patterns. I remember reading somewhere that you could use IDbSet instead of defining a sample IRepository interface as defined above but I cannot seem to find the msdn page for it and a lot of authors on the web follow the above approach. Even when using EF 4.3 : \
Can you someone shed some light on this please? Or is there an equivalent interface devs should be using in .net 4.0 with E.F ?
Yes,
IDbSetis part ofEntityFramework.dll, even in the version for .NET 4.0. Documentation forEntityFramework.dll(it’s not part of the .NET Framework itself) before 5.0 does not appear to be available at MSDN, which is why you have trouble finding it.