You mean that for a given persistent object, you want to be able to check the object state ?
Well it depends on the way you use NHibernate; manage your session; handle or not unsaved value..It is quite difficult to give you a precise answer. Selon alexey_baranov <[email protected]>: > Hi! > > I have ask my objects are they new very often. I have very simple > method in parent class Obj > > public bool IsNew(){ > return Id != null; > } > > But it will be more correct to manage this ask to NHibernate I think. > Does it have some method for this job like > > NH.IsObjectNew(myObj) > > > thaks! > > -- > 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. > > -- 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.
