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