Re: [nhusers] custom sort order by position

2011-06-03 Thread Richard Brown (gmail)
Use a list (instead of a bag/set). -Original Message- From: Inna Sent: Thursday, June 02, 2011 4:45 PM To: nhusers Subject: [nhusers] custom sort order by position Hi I was wondering if it is possible to set the sort order by position using nhibernate. The position of an item is

Re: [nhusers] HQL and Event Listeners

2011-06-03 Thread Gunnar Liljas
You mean HQL updates and deletes? If not, there's no difference in how an update or delete is performed. /G 2011/6/3 Kasi mbk...@gmail.com Hi, I would like to check whether HQL queries fire event listeners such as IPreUpdateEventListener,IPreDeleteEventListener, etc... I have been using

[nhusers] Re: NHibernate.ByteCode.Castle.ProxyFactoryFactory source

2011-06-03 Thread mcintyre321
Seconded On May 31, 9:05 am, Nick nick.cu...@gmail.com wrote: Thanks - I was looking for this too. It would be nice if the source code for the bytecode providers were anywhere more accessible (assuming they're not going to be deprecated) - perhaps in the NH Contrib repo (or in their own

[nhusers] Re: NHib 3.2 and NHib Validator together

2011-06-03 Thread Berryl Hesh
Awesome. I think the proposed fix has a typo tho: public static bool IsProxyFactoryConfigurated() { var f = NHibernate.Cfg.Environment.BytecodeProvider.ProxyFactoryFactory; return f != null;// instead of true != null

Re: [nhusers] HQL and Event Listeners

2011-06-03 Thread sbohlen
Correct; these 'events' are tied to the Session's actions when its flushed/interacts w the DB. The choice of query API doesn't have any effect on the way these events are raised (and reacted to by your listeners). -Steve B. -- You received this message because you are subscribed to the

[nhusers] NHibernate 3.x Linq LeftOuterJoin

2011-06-03 Thread Luka
Hi, does anybody knowns when will Left Outer Join be implemented? ie the following query does not work it throws not implemented exception: var query = (from p in Session.QueryPerson() join pa in Session.QueryPersonAddress() on p.Id equals pa.PersonId into tempAddresses from addresses in

[nhusers] Re: QueryOver works but Query do not

2011-06-03 Thread abx
Looks like the problem is related to TypeMock. Even if it is not referenced in my project. But if I disable it everything works fine -- You received this message because you are subscribed to the Google Groups nhusers group. To post to this group, send email to nhusers@googlegroups.com. To

[nhusers] Re: where is config.LinqToHqlGeneratorsRegistry ?

2011-06-03 Thread murki
There are a couple of small details with that post that I've found, hope this will help you: 1) ReflectionHelper.GetMethod() is actually ReflectionHelper.GetMethodDefinition() 2) configuration.LinqToHqlGeneratorsRegistryMyLinqToHqlGeneratorsRegistry() is an extension method, so you will have to

[nhusers] Populating entities from stored procedures with nHibernate - could not execute query.

2011-06-03 Thread Adam
Hi, i posted yesterday my question on stackoverflow but there nobodoy answered me. Therefore i try here;) If someone want see formated question here is my post: http://stackoverflow.com/questions/6219921/populating-entities-from-stored-procedures-with-nhibernate-could-not-execute-qu Today I

[nhusers] 2nd level cache expected behavior?

2011-06-03 Thread fel0niousmonk
Everything I've read would lead me to believe that what I'm seeing shouldn't happen, but alas it is, and I don't know why, or if it's 'fixable'. Suppose I have the following entities: - Customer - Ticket -- IListNote -- IListReminder I have a query that returns all Tickets for a given

[nhusers] creating table in nhibernate

2011-06-03 Thread scottl2001
could someone please direct me to the best source of online documentation as to how to create a new table through nhibernate? I've got my C# class created: * namespace StyleApplication.Data.Models { public class StyleImport :

[nhusers] Re: 2nd level cache expected behavior?

2011-06-03 Thread fel0niousmonk
in addition (and contrary to the above behavior) I'm seeing that if I load a given Ticket, then add a Note to it, then re-query for the Ticket .. the entire Ticket is loaded from the cache, WITHOUT the new note. What am I doing wrong? On Jun 3, 1:48 pm, fel0niousmonk fel0ni...@gmail.com

[nhusers] Re: where is config.LinqToHqlGeneratorsRegistry ?

2011-06-03 Thread Khafancoder
Thank you very much Miguel it helped a lot On Jun 3, 8:55 pm, murki murk...@gmail.com wrote: There are a couple of small details with that post that I've found, hope this will help you: 1) ReflectionHelper.GetMethod() is actually ReflectionHelper.GetMethodDefinition() 2)

[nhusers] Re: creating table in nhibernate

2011-06-03 Thread Berryl Hesh
http://nhforge.org/doc/nh/en/index.html#toolsetguide-s1 On Jun 3, 2:21 pm, scottl2001 scottlackey2...@yahoo.com wrote: could someone please direct me to the best source of online documentation as to how to create a new table through nhibernate? I've got my C# class created:

[nhusers] Named entities with Query or QueryOver

2011-06-03 Thread Kenneth Siewers Møller
Hi, Is it possible to query named entities using Query or QueryOver (or is there a hack/workaround available)? I'd like to have a repository method that returns an IQueryable from a named entity, but I can't seem to find any overload that accepts an entity name. The only way I can get it, it