NamedDataContext

NamedDataContext

Represents a data context based on a data adapter's name. The specified adapter name must be registered in application configuration.

Constructor

new NamedDataContext()

Properties:
Name Type Description
db DataAdapter Gets a data adapter based on the given adapter's name.
Source:

Extends

Members

user

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

Methods

getConfiguration() → {DataConfiguration}

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

model(name) → {DataModel}

Gets an instance of DataModel class based on the given name.
Parameters:
Name Type Description
name string A string that represents the model name.
Source:
Returns:
- An instance of DataModel class associated with this data context.
Type
DataModel