Update EFRepository.cs

Fix readonly field