Update NHRepository.cs

Fix readonly field