DataContext

most-data/types~ DataContext

Represents the main data context.

Constructor

new DataContext()

Source:

Extends

  • EventEmitter2

Members

db :DataAdapter

Gets the current database adapter
Type:
  • DataAdapter
Source:

Methods

finalize(cb)

Parameters:
Name Type Description
cb function
Source:

getConfiguration() → {DataConfiguration}

Gets an instance of DataConfiguration class which is associated with this data context
Source:
Returns:
Type
DataConfiguration

model(name) → {DataModel}

Gets a data model based on the given data context
Parameters:
Name Type Description
name string A string that represents the model to be loaded.
Source:
Returns:
Type
DataModel