예제 #1
0
        public ArangoContext(IArangoConfiguration config)
        {
            Configuration = config ?? throw new ArgumentNullException(nameof(config));

            User        = new ArangoUserModule(this);
            Collection  = new ArangoCollectionModule(this);
            View        = new ArangoViewModule(this);
            Database    = new ArangoDatabaseModule(this);
            Graph       = new ArangoGraphModule(this);
            Transaction = new ArangoTransactionModule(this);
            Document    = new ArangoDocumentModule(this);
            Query       = new ArangoQueryModule(this);
            Index       = new ArangoIndexModule(this);
            Analyzer    = new ArangoAnalyzerModule(this);
            Function    = new ArangoFunctionModule(this);
            Foxx        = new ArangoFoxxModule(this);
        }
예제 #2
0
        public ArangoContext(string cs, IArangoConfiguration settings = null)
        {
            Configuration = settings ?? new ArangoConfiguration();
            Configuration.ConnectionString = cs;

            User        = new ArangoUserModule(this);
            Collection  = new ArangoCollectionModule(this);
            View        = new ArangoViewModule(this);
            Database    = new ArangoDatabaseModule(this);
            Graph       = new ArangoGraphModule(this);
            Transaction = new ArangoTransactionModule(this);
            Document    = new ArangoDocumentModule(this);
            Query       = new ArangoQueryModule(this);
            Index       = new ArangoIndexModule(this);
            Analyzer    = new ArangoAnalyzerModule(this);
            Function    = new ArangoFunctionModule(this);
            Foxx        = new ArangoFoxxModule(this);
        }