NRepository 2.2

Rating: No reviews yet
Downloads: 23
Change Set: b9d842b13ef2884
Released: Jul 23, 2014
Updated: Jul 28, 2014 by KelbobK5
Dev status: Stable Help Icon

Recommended Download

Example Contoso University samples
example, 3133K, uploaded Jul 24, 2014 - 23 downloads

Release Notes


NRepository packages are available from
  1. NRepository.Core: Install-Package NRepository.Core
  2. NRepository.EntityFramework: Install-Package NRepository.EntityFramework
  3. NRepository.TestKit: Install-Package NRepository.TestKit

Contoso University Sample Projects Added

3 versions of Contoso University sample code added:
  1. ContosoUniversityOriginal - This is the original Microsoft sample project for Entity Framework.
  2. ContosoUniversityUsingNRepository - This version simply replaces all database access (DbContext calls) and replaces them with calls using NRepository. calls injected into the controllers using dependency injection (Unity).
  3. ContosoUniversityUsingCQRS - This sample splits the queries and commands (behaviours) into seperate services and includes tests which demonstrate some of the features of the NRepository.TestKit.

Code changes


  1. Added row count to PagingQueryStrategy
  2. TextSearchSpecificationStrategy allows null or empty search strings (allows cleaner code).
  3. Added AddQueryStrategy extension method for IEnumerable<T>
  4. Spelling correction of Entities property on InMemoryRepository (was previously 'Enities').
  5. ThrowOriginalException property added to the ISaveCommandInterceptor to allow users to bypass exception handling and throw original raw exception.


  1. Fixed bug in load extension when IRepository is used instead of IQueryRepository
  2. Removed extra exception level when save throws an exception. May cause breaking changes around exception handling due to one less inner exception on the exception raised.


  1. Added params constructors to InMemoryRecorded repositories.

Reviews for this release

No reviews yet for this release.