EcoSpace DLL project

CapableLogo

General

This project contains the definition of the actual EcoSpace class, and its persistence. An EcoSpace acts as a container for ECO Objects. The classes of objects that a particular EcoSpace can contain are defined in a model consisting of one or more ECO packages. This EcoSpace initally uses the package $PackageName$.

Contents

This project contains the following files:

ReadMe.html This file.
EcoMvcExample_AdminEcoSpace.cs The actual EcoSpace class.
licenses.licx licx file for including the ECO runtime license.

The Ecospace class

There a number of tools at the bottom of the designer for the EcoSpace, where the most important are:

  • Select Packages - select the packages that form the model for the EcoSpace
  • Validate model - the name speaks for itself
  • The package selector works by reflecting over the referenced assemblies, so everything must current and compiled for the designer to pick it up correctly.

    The other tools are related to persistence, and should be considered as obsolete. All persistence operations are now performed on the PersistenceMapper provider.

    The PersisteneMapper Provider

    Persistence for the EcoSpace is configured with the designer for the PersistenceMapperProvider. A suitable PersistenceMapper component is placed on the designer, and connected to the PersistenceMapper property. In most cases a database connection component, e.g. a SqlConnection, is also needed. The connection component is configured to connect to the database to be used. If xml persistence is used, there is no need for a connection component. The name of the file is set directly on the PersistenceMapperXml component. There a number of tools at the bottom of the designer, where the most important are:

  • Generate Schema - Create tables in database suitable for storing the objecs in the EcoSpace.
  • Evolve Schema - Change the structure of the tables to accomodate model changes, without loosing data.