Re: AR SessionScope issue

2009-10-17 Thread Markus Zywitza
Hi Markus the problem is the Identity PK. See here: http://www.castleproject.org/ActiveRecord/documentation/trunk/usersguide/pks.html#identity Try using a GuidComb or HiLo and you'll see no database calls at all with FlushAction.Never -Markus 2009/10/16 Markus markus.ste...@web.de Hi all!

Re: AR SessionScope issue

2009-10-17 Thread Markus
Hi Markus! Thanks for your feedback, that helped alot. Currently I'm working based on a legacy database so I can't change the primary key types of my classes. Although I think GUIDs are ok and easy to implement, our database administrators do not like them and prefer integer values as PKs