Hi,
I am trying to use the out of the box repository of the sharp
architecture in a console application to initialise the database.
However, I get this exception:
ISessionStorage has not been configured
I am using:
IRepository ARepository = new Repository();
A a = new A(); ... ini some properties
ARepository.SaveOrUpdate(a);
This should work or am I missing something?
Thanks.
Christian
Thanks.
// change mapping assemblies as necessary
string[] mappingAssemblies = new string[] { "MyProject.Data" };
string configFile = "NHibernate.config";
Configuration config = NHibernateSession.Init(
new SimpleSessionStorage(),
mappingAssemblies,
new AutoPersistenceModelGenerator().Generate(),
configFile);
Regards
Dan