ECO (Domain Driven Design) - Object Persistence

Object Persistence

ECO performs object-relational mapping based on metadata which is taken from the model or from an xml file. It implements such advanced object persistence features as caching, lazy load and others. Mapping scheme is configurable enough to use ECO with existing databases. Database reverse engineering wizard as a part of ECO helps with this task.

ECO automatically keeps track of all unsaved changes to the objects and provides simple means for the programmer to propagate these changes to the persistent storage, for example using the following command:

ECOSpace.PersistenceService.UpdateDatabase;

Using OCL simplifies loading objects from the persistent storage. The example code below uses the OCL expression "Person.AllInstances" to load all instances of the class named "Person" in the UML model:

IObjectList people = ECOSpace.OclService.Evaluate("Person.AllInstances");

Read more about this topic:  ECO (Domain Driven Design)

Famous quotes containing the words object and/or persistence:

    The Catholic Church has never really come to terms with women. What I object to is being treated either as Madonnas or Mary Magdalenes.
    Shirley Williams (b. 1930)

    Extreme patience and persistence are required,
    Yet everybody succeeds at this before being handed
    The surprise box lunch of the rest of his life.
    John Ashbery (b. 1927)