From: Prasanth K. <p_k...@ya...> - 2006-02-24 14:14:12
|
Hi, I am Made Some small Modifications to the NHibernate Code. Needed Help as to if I am Going in the Right Direction. I would also Highly appreciate any Critsisims or Suggestions. Pls also Let Me Know if This would affect the Exisisting Code in Anyway. Problem Statement: I needed Dynamic Updates to Work even If I dont Load the Object in the same session. Solution: I will be creating an IClass Interface. This will have One function called GetDirtyColumns. All the Entity class Files implement this interface. Apart from all Properties Entity Class Files will also have a bool array which will keep a track of all Changed Properties. This can be done by modifying the Set Funtion of all Properties. Now I will pass this array to the EntityPersister Class. This will now work as Dynamic Update Currently works. For My modified version of updatw kindly have alook at the attached Text File. Regards Prasanth Kumar __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |