For example, I like my ModelBinder to transform all "field_???" values to my single custom object. How I could do that? ValueProvider.GetValue only allows me to access by exact name, and I can't enumerate all possible fields...
How to I write ModelBinder that access all fields by prefix?
244 Views Asked by Leotsarev At
1
There are 1 best solutions below
Related Questions in ASP.NET-CORE
- ASP.NET 5 Class Library - Nuget package Web.Config transform
- Asp.Net 5 correct way to access logging config file from Startup.cs
- What is the difference between 'dependencies' and 'frameworkAssemblies' in project.json?
- Getting absolute URLs using ASP.NET Core
- How to add Project Reference in asp.net 5 application
- Configure the authorization server endpoint
- Observer for fire&forget Task
- IApplicationBuilder exists in both Microsoft.AspNet.Http.Abstractions and Microsoft.AspNet.Http
- What frameworks are available in ASP.NET Core (ASP.NET 5) applications?
- How do I include 'System.Runtime.Serialization.Json' namespace in my VSCode project on Mac OS X?
- How to suppress warnings when building an ASP.NET 5 project?
- Dependency Injection in asp.net 5 custom classes, what is the correct way?
- How to access IConfiguration property from Controller in ASP.NET 5
- Getting a scoped component from a IDocumentStoreListener
- How is execution passed from the clr to Startup class (startup.cs)?
Related Questions in MODEL-BINDING
- Bind list with missing items, preserve gaps
- Model binder at controller level
- Model Property not displaying in Details page ASP.NET MVC 5
- MVC3 POST model binding not working for particular complex model
- ASP.NET MVC and Web API model binding - how do I bind to properties with names disallowed by the language?
- View is not refreshing when the model is changed in ASP.NET MVC
- Is there a way to modify the generated name attribute for TextboxFor, HiddenFor etc through ModelBinder?
- How to selectively validate some data annotation attribute?
- Cannot POST complex object from View to Controller
- Web API Model binding - Complex Parameter
- Bind checkboxes to List in partial view
- MVC 5 Complex View Model binding is not working
- Handling decimal parameters in webapi
- setting a value with jquery, removes the binding to the ViewModel when the data is submitted
- How to call Model Binding manually in .Net Core
Related Questions in CUSTOM-MODEL-BINDER
- Sharing a custom model binder between MVC 5 and Web Api
- Unable to parse Array Type Query string to List of Object
- ASP.NET: Modelbinder only delegating
- What method or property should be overwritten in custom Model Binding?
- MVC CustomModelBinder, Action with same property names - An item with the same key has already been added
- C# ASP.NET Core ModelBinder not Updating Model
- ASP.NET MVC Model Binder with Global Number Formats
- Custom model binder for inner model
- "An entity object cannot be referenced by multiple instances of IEntityChangeTracker" with a custom model binder
- Custom parameter binding to bind partial parameters
- ASP.Net Web API model binding not working like it does in MVC 3
- How do i create a custom model binder in ASP.NET Web Forms?
- Dependency Inject for models
- How to I write ModelBinder that access all fields by prefix?
- MVC 3 Custom Model Binding To Flat Form Variable Structure
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Try this:
Read the article https://learn.microsoft.com/ru-ru/aspnet/core/mvc/models/model-binding?view=aspnetcore-5.0