Update RepositoryBase.cs

Make method virtual to exclude ServiceLocator in impl