Hello, when override AdjustFieldValue(FieldInfo field, object oldValue, object newValue) method in my entity class to modify some entity's field values before setting them, the method isn't called for the structure fields within the entity. so what should i do to force the method to be called when changing structure field or what are other solutions to do the task?

thanks

asked Apr 19 '12 at 04:44

ahmad%20emad's gravatar image

ahmad emad
26292931


One Answer:

sorry, it works fine, i think the problem is that we are using reflection to set the property values and with structure types we update them directly without going through the entity it self( for example: calling SetFieldValue or call Entity.StructureProperty.field = value), and i am going to find a solution.

thanks.

answered Apr 19 '12 at 05:46

ahmad%20emad's gravatar image

ahmad emad
26292931

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

Subscription:

Once you sign in you will be able to subscribe for any updates here

Tags:

×11
×1

Asked: Apr 19 '12 at 04:44

Seen: 2,667 times

Last updated: Apr 19 '12 at 05:46

powered by OSQA