What is the opposite of “Model Binding” or “Value Providers” in MVC and is it extensible?

General Tech Learning Aids/Tools 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Learning Aids/Tools related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

In other contexts, I'm used to "binding" inferring bidirectional movement of the data to/from the object. Put in other terms, we could call the movement of data from an object to a html form 'serialization' and the reverse, 'deserialization'. However model binders and value providers, seems only responsible for populating an object from an http request - the deserializing part. What part of the pipeline is responsible for taking data from the object and serializing it to the form or other http response? Or does it simply stop with the 'Html.TextBoxFor' utility?

I beleive I could create a custom InputExtension but that seems overkill - the default does most of what I need except for when it grabs the value for a property. I could also create a different model but that is also something I'm trying to avoid.

Is there an extensibility point where I could manage the value extraction from the model to the html input?

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.