// calling custom repo provier private T GetRepo <T>() where T : class { return(RepositoryProvider.GetRepository <T>()); }
// add it also in EFRepositoryFactories.cs, in method GetCustomFactories //public ISomeRepo Something { get { return GetRepo<ISomeRepo>(); } } // calling standard EF repo provider private IEFRepository <T> GetStandardRepo <T>() where T : class { return(RepositoryProvider.GetRepositoryForEntityType <T>()); }