DefaultDataContext

most-data/data-classes. DefaultDataContext

Represents the default data context of MOST Data Applications. The default data context uses the adapter which is registered as the default adapter in application configuration.

 adapters: [
 ...
 { "name":"development", "invariantName":"...", "default":false,
    "options": {
      "server":"localhost",
      "user":"user",
      "password":"password",
      "database":"test"
    }
},
 { "name":"development_with_pool", "invariantName":"pool", "default":true,
    "options": {
      "adapter":"development"
    }
}
 ...
 ]
 

Constructor

new DefaultDataContext()

Properties:
Name Type Description
db DataAdapter Gets a data adapter based on the current configuration settings.
Source:

Extends