Question

1) Is it possible to use Burrow with winforms application or WPF application?

2) Are there any samples how to configure Burrow with winforms app.

Was it helpful?

Solution

Even if it is possible - you should not. Burrow uses HttpModule to configure ISession, ISessionFactory lifetime.

You won't get anything usefull from burrow except implementation of DAO objects and some base classes for entities. I think you better move the source code of required parts in your application and use them.

OTHER TIPS

What about using

new NHibernate.Burrow.BurrowFramework.InitWorkSpace();
new NHibernate.Burrow.BurrowFramework.CloseWorkSpace();

These methods create and destroy the Session without using httpModule. So it can be used in unittests where u cannot supply the module. => what about winforms apps? The question is still opened

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top