Menu
  • HOME
  • TAGS

NHibernate: How to know if, on Flush() SQL will be sent?

session,nhibernate,flush,dirty-data

In my experience Ghosts can be caused by the database being a nullable int and the mapping an ordinary int. When the entity gets hydrated the nullable db int is converted to zero and hence it is now dirty. Another way to get dirty records is by specifying a wrong...

Scout Eclipse check for dirty fields

valuechangelistener,eclipse-scout,dirty-data

My first question is why RAP application doesn't ask same question ? I am not sure to know which message box you mean but it should be the case. There are several questions about unsaved changes and form lifecycle in the Eclipse Scout Forum. I think you can find...

How to create IsDirty inside OnPropertyChange, but at the same time turn it off when entities are loaded from a database

c#,wpf,entity-framework,inotifypropertychanged,dirty-data

no, there isn't an easy way you should override your method that retrieve entities from db in a way that it sets automatically Isdirty=false on entity creation. I used nhibernate interceptor and events to do something similar but it is not your case. another way is to keep a copy...