Esempio n. 1
0
 // calling custom repo provier
 private T GetRepo <T>() where T : class
 {
     return(RepositoryProvider.GetRepository <T>());
 }
Esempio n. 2
0
        // 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>());
        }