How do i pass entity reference to Validation Context in breeze when doing conditional validation?
Consider the following scenario:
I have radio button list which is not directly bound to breeze entity but is bound to my view model property. Depending on radio button selection, i want to validate other inputs on the form that are bound to my breeze data entity.
I tried building custom validation on the radio button where my validation function holds reference to the radio button selection in built-in value property of validation context. Now, i am trying to access my entity object in the validation function to evaluate other input of my forms based on radio button selection.