Update EFRepository.cs

fix readonly field