Hi, first of all thanks for your reply
On Aug 28, 5:53 pm, William Chang <[email protected]> wrote: > I don't think you need to inject into the NHibernate process or some > kind of intercetor. I think it's good to do it in your code, be sure > to make your code has it's own class with a static method (which query > the database for the next id). That is really similar to what I am doing now. > Another option, you can try implement > your own custom NHibernate generator, but I don't know if you can use > it without being a primary key. > > A quick search on > Google:http://www.lucisferre.org/coding/index.php/2009/07/13/implementing-a-... > Well that code, imho, isn't really a good sample on how to build a generator. I've done a couple of generetors and I think there are better options. But this is not the point, as you point out generators works only for PK. > Sincerely, > William Chang > .m --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
