예제 #1
0
 public LokiQueryChain(INodeServices nodeServices, LokiDatabaseConfiguration configuration, string collectionName,
                       string dynamicViewName, string transformName = null, dynamic transformParams = null)
 {
     _nodeServices          = nodeServices;
     _databaseConfiguration = configuration;
     _collection            = collectionName;
     _dynamicViewName       = dynamicViewName;
     _transformName         = transformName;
     _transformParams       = transformParams;
 }
예제 #2
0
        ///<summary>
        /// DotNetCore wrapper class for LokiJS NodeServices database instance.
        ///
        /// LokiService will maintain state across requests and it can have multiple databases loaded.
        /// Database structure (collections, indexing, autosave intervals, transform and dynamic view definitions)
        ///   are defined within an initializer.
        /// You may have multiple instances of each defined service initializer, each uniquely referenced by
        ///   the dbInstancePath.
        ///</summary>
        ///<param name="nodeServices">Reference to your controller's dependency injected INodeServices reference</param>
        ///<param name="servicePath">Relative path to the lokiservice.js service</param>
        ///<param name="serviceInitPath">Relative path to your service initializer module</param>
        ///<param name="dbInstancePath">Relative path to where your database instance will be stored.</param>
        ///<remarks>
        ///Intellisense comments generation and consumption are not fully supported within current vscode so this is mostly
        // for full Visual Studio and documentation support.
        ///</remarks>
        public LokiDatabase(INodeServices nodeServices, string servicePath, string serviceInitPath, string dbInstancePath)
        {
            this._nodeServices = nodeServices;

            this._config = new LokiDatabaseConfiguration {
                ServicePath          = servicePath,
                ServiceInitPath      = serviceInitPath,
                DatabaseInstancePath = dbInstancePath
            };
        }
예제 #3
0
 public LokiQueryChain(INodeServices nodeServices, LokiDatabaseConfiguration configuration, string collectionName)
 {
     _nodeServices          = nodeServices;
     _databaseConfiguration = configuration;
     _collection            = collectionName;
 }
예제 #4
0
 public LokiDatabase(INodeServices nodeServices, LokiDatabaseConfiguration configuration)
 {
     this._nodeServices = nodeServices;
     this._config       = configuration;
 }