[nhusers] Deferred Constraints in NH

2011-11-07 Thread turibbio
There's any way to hande deferred constraints in NH? I need to set something like that INITIALLY DEFERRED DEFERRABLE before my update, but I can't find a way to map that in xml. Thanks in advance! -- You received this message because you are subscribed to the Google Groups nhusers group. To

[nhusers] Inverted like statement in with criteria API

2011-11-07 Thread Florian DREVET
Hi all, I have a table with URI roots (for exemple : http://myserver:myport), and I want to match the root for a given absolute URI (for exemple : http://myserver:myport/myFolder/myPage.ext) Using HQL I may write a query such as from MyObject as mo where :myParameter LIKE mo.MyProperty + '%'

Re: [nhusers] DAO, cascade, transaction

2011-11-07 Thread Florian DREVET
Hi Blaw, Thank you for your answer. I'm using one NHibernate session (since I use session per request pattern) I'm opening only one transaction at a given time (as far as I know, correct me if I'm wrong, their can be only one transaction opened for a NHibernate session) -- You received this

Re: [nhusers] DAO, cascade, transaction

2011-11-07 Thread brandon law
There can only be on open AT A TIME. On Mon, Nov 7, 2011 at 12:08 PM, Florian DREVET florian.dre...@gmail.comwrote: Hi Blaw, Thank you for your answer. I'm using one NHibernate session (since I use session per request pattern) I'm opening only one transaction at a given time (as far as I

[nhusers] NHibernate 3.2

2011-11-07 Thread Steve Taylor
Hello, I am upgrading my .NET application to 3.2 and keep getting the following error when trying to run the code in debug mode. Could not load file or assembly 'NHibernate.ByteCode.LinFu' or one of its dependencies I thought 3.2 did not require this DLL anymore... I have cleared out my

Re: [nhusers] NHibernate 3.2

2011-11-07 Thread John Davidson
You may have a reference in an old app.config file that is hanging around in a bin directory. John Davidson On Mon, Nov 7, 2011 at 4:45 PM, Steve Taylor stay...@novologic.com wrote: Hello, I am upgrading my .NET application to 3.2 and keep getting the following error when trying to run the

[nhusers] Re: NotSupportedException when using Take

2011-11-07 Thread acl123
Hi, thanks, that was the problem. On Nov 5, 5:38 am, Adam Bar adamr...@gmail.com wrote: Are you sure you want to do ordering *after* taking first 5 rows? If so, do it in-process: Session.QueryFoo()    .Where(x = x.Code == testcode)    .Where(x = x.Bar.Id = 7)    .Take(5)