Exception: PersisterDoesNotSupportRepositoryException
Posted by Gerhard Stephan on April 17th, 2008
The PersisterDoesNotSupportRepositoryException will be thrown by the XmlPersister if you try to access the Repository of the ObjectMapper class.
The Repository interface is especially designed for use with relational databases and therefore not accessible when using the XmlPersister.
string file = Directory.GetCurrentDirectory() + "\\XmlTest.xml";
XmlPersister persister = new XmlPersister("XmlTest", file);
AdFactum.Data.ObjectMapper xmlMapper = new AdFactum.Data.ObjectMapper(new UniversalFactory(), persister, Transactions.Manual);
IRepository repository = xmlMapper.Repository;
