We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polymorphic model binding example given here always returns null result.
var modelTypeValue = bindingContext.ValueProvider.GetValue(modelKindName).FirstValue; in particular should return a value but always returns null.
var modelTypeValue = bindingContext.ValueProvider.GetValue(modelKindName).FirstValue;
I've added the binder like this in my startup.cs
startup.cs
services.AddMvc(options => { options.ModelBinderProviders.Insert(0, new DeviceModelBinderProvider()); });
Can anyone help me with this?
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered:
Moved to Master issue for Custom Model Binding #16319
Sorry, something went wrong.
No branches or pull requests
Polymorphic model binding example given here always returns null result.
var modelTypeValue = bindingContext.ValueProvider.GetValue(modelKindName).FirstValue;
in particular should return a value but always returns null.I've added the binder like this in my
startup.cs
Can anyone help me with this?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: