public BaseRepository() { // install-package commonservicelocator var repositoryManager = (RepositoryManager)ServiceLocator.Current.GetInstance <IRepositoryManager>(); _context = repositoryManager.Context; }
public void Begin() { var repositoryManager = ServiceLocator.Current.GetInstance <IRepositoryManager>() as RepositoryManager; _context = repositoryManager.Context; }