Lynicon has two built-in persistence models, Content persistence, and Basic persistence. Content is the default model. Basic persistence can be set up for any type by inserting the following line in LyniconConfig.cs, at the beginning of the Initialise method:
Code Block |
---|
Collator.Instance.SetupType(typeof(MyContent), new BasicCollator(), new BasicRepository()); |
Other persistence models can be built and used by creating providers implementing ICollator and IRepository, and using them in place of BasicCollator and BasicRepository above.
...