Questions tagged [castle-autotx]

Castle Windsor's Auto Transaction Facility

4 questions
2
votes
2 answers

MissingTransactionException when running NHibernate with Castle.Facilities.AutoTx

I'm trying to configure Castle Windsor with NHibernate and Castle.Facilities.AutoTx, but I keep getting problems with the PerTransactionLifeStyleOption. If I do var sessionFactory = Container.Resolve>(); var session =…
Tomas Aschan
  • 58,548
  • 56
  • 243
  • 402
2
votes
1 answer

Castle.Facilities.AutoTx doesn't start new commitable transaction when [Transaction(TransactionScopeOption.RequiresNew)] is used

When using Castle.Facilities.AutoTx facility with [Transaction(TransactionScopeOption.RequiresNew)] attribute, the expected new System.Transactions.CommittableTransaction is not created. You can easily test it with the following unit test using…
Pecan
  • 350
  • 3
  • 14
1
vote
1 answer

Strange Castle AddFacility runtime error

I'am new to Castle and Castle.Windsor, so this is maybe a noob question. I created an empty console .NET 4.0 application and added next packages through NuGet: Castle Windsor factory support facility 3.0 beta 1 (3.0.2001) Castle Windsor 3.0 beta 1…
user809808
  • 779
  • 1
  • 10
  • 23
0
votes
3 answers

Castle Automatic Transaction Management Facility persist issues

Regarding the Castle Automatic Transaction Management Facility; I'm having some difficulties getting operations to actually save to the database without flushing the session. I'm using the following components * NHibernate.dll v3.1.0.4000 *…
Ryan.Bartsch
  • 3,698
  • 1
  • 26
  • 52