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.

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>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
tryEntityForType(Type type) ManagedEntity?

Operators

operator ==(Object other) bool
The equality operator.
inherited