2009/4/15 Fregas <fre...@gmail.com> > > what would be the proper way to force nhibernate to do an insert on > every save?
Flush or you can better try Persist method (don't go to DB is you don't really need it). If your case is a special "bulk" operation you should use StatelessSession. > > > Also, is it possible to have nhibernate persist properties that do not > have setters or backing fields? These are properties that have > getters only to calculate something, but we want to save the results. in NH2.1.0 you can use the accessor "readonly" in the previous a "nosetter...." with a field only to make NH happy or to not recalculate where values was not changed. -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ 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 unsubscribe from this group, send email to nhusers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---