When you say "updating the table" I assume you are talking about "inserting rows manually" without using NHibernate.
Couple of options that may/may not work 1. Use negative numbers (id's) when inserting the data without NH, this means it cannot conflict with Hilo 2. Use Nhibernate to insert data 3. Choose another identity stategy Rippo From: [email protected] [mailto:[email protected]] On Behalf Of Deepz Sent: 18 February 2013 09:48 To: [email protected] Subject: [nhusers] Nhibernate Hilo Cache Hi All, I am using Hilo algorithm for a table.Its working fine normally.For a particular scenario I am updating the table manually(Sql Query ). And so the First level cache is not updating and the next time when I am trying to insert thorugh Nhibernate,getting Error Violation of Primary key(Duplicate key).If i don't update manually means it works like a charm.Please Help me Its Urgent. Many Thanks Deepak -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
