Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Data system providers are registered by for each data type which needs to be handled by the system at the 3 different levels of the data system.  By default, when a DataRoute<T> is created, the system sets up the type T to be handled by Lynicon.Collators.ContentCollator, Lynicon.Repositories.ContentRepository and Lynicon.DataSources.CoreDataSource.  See Built-In Data Providers for a description of how each of these function, or read about content persistence in Persistence Models.

...

Code Block
languagec#
Collator.Instance.Register(typeof(T), new BasicCollator());
Repository.Instance.Register(typeof(T), new BasicRepository(new CoreDataSource()));

There is a specific shortcut to set up the above configuration (i.e. to use basic persistence):

Code Block
languagec#
Collator.Instance.SetupTypeForBasic<T>();

Build Custom Providers