ManagedDataModel class

Instances of this class contain descriptions and metadata for mapping ManagedObjects to database rows.

An instance of this type must be used to initialize a ManagedContext, and so are required to use Querys.

The ManagedDataModel.fromCurrentMirrorSystem constructor will reflect on an application's code and find all subclasses of ManagedObject, building a ManagedEntity for each.

Most applications do not need to access instances of this type.

Implements

Constructors

ManagedDataModel(List<Type> instanceTypes)
Creates an instance of ManagedDataModel from a list of types that extend ManagedObject. It is preferable to use ManagedDataModel.fromCurrentMirrorSystem over this method. [...]
ManagedDataModel.fromCurrentMirrorSystem()
Creates an instance of a ManagedDataModel from all subclasses of ManagedObject in all libraries visible to the calling library. [...]

Properties

entities Iterable<ManagedEntity>
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

documentComponents(APIDocumentContext context) → void
Tells this object to add its components to context. [...]
entityForType(Type type) ManagedEntity
Returns a ManagedEntity for a Type. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
release() → void
inherited
retain() → void
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited