Ejemplo n.º 1
0
		public void Initialize(IInfrastructureFactory infrastructureFactory, IDatabaseModel databaseModel)
		{
			_helpProvider = infrastructureFactory.CreateHelpProvider();
			_codeCompletionProvider = infrastructureFactory.CreateCodeCompletionProvider();
			_navigationService = infrastructureFactory.CreateNavigationService();
			_colorizingTransformer.SetParser(infrastructureFactory.CreateParser());
			DocumentRepository = new SqlDocumentRepository(infrastructureFactory.CreateParser(), infrastructureFactory.CreateStatementValidator(), databaseModel);
		}
Ejemplo n.º 2
0
        private SqlDocumentRepository ConfigureDocumentRepository()
        {
            var documentRepository = new SqlDocumentRepository(_infrastructureFactory.CreateParser(), _infrastructureFactory.CreateStatementValidator(), _infrastructureFactory.CreateDatabaseModel(ConfigurationProvider.ConnectionStrings[0], "Test database model"));

            documentRepository.UpdateStatements(_editor.Text);
            return(documentRepository);
        }
Ejemplo n.º 3
0
 public void Initialize(IInfrastructureFactory infrastructureFactory, IDatabaseModel databaseModel)
 {
     _helpProvider           = infrastructureFactory.CreateHelpProvider();
     _codeCompletionProvider = infrastructureFactory.CreateCodeCompletionProvider();
     _navigationService      = infrastructureFactory.CreateNavigationService();
     _colorizingTransformer.SetParser(infrastructureFactory.CreateParser());
     DocumentRepository = new SqlDocumentRepository(infrastructureFactory.CreateParser(), infrastructureFactory.CreateStatementValidator(), databaseModel);
 }