DataContext

DataContext

Represents the main data context.

Constructor

new DataContext()

Source:

Extends

Members

db :DataAdapter

Gets the current database adapter
Type:
Source:

user

Gets or sets an object that represents the user of the current data context.
Properties:
Type Description
* | Object
Source:

Methods

emit(event, args, callback)

Raises the specified event and executes event listeners in series.
Parameters:
Name Type Description
event String The event that is going to be raised.
args * An object that contains the event arguments.
callback function A callback function to be invoked after the execution.
Inherited From:
Source:

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
<<<<<<< HEAD

model(name) → {DataModel}

=======

model(name) → {DataModel}

>>>>>>> 17c18384399eb4517cbedf593f523886db181e2a
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