public BaseRepository()
        {
            // install-package commonservicelocator
            var repositoryManager = (RepositoryManager)ServiceLocator.Current.GetInstance <IRepositoryManager>();

            _context = repositoryManager.Context;
        }
Example #2
0
        public void Begin()
        {
            var repositoryManager = ServiceLocator.Current.GetInstance <IRepositoryManager>() as RepositoryManager;

            _context = repositoryManager.Context;
        }