コード例 #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);
		}
コード例 #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);
        }
コード例 #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);
 }