Skip to content

enable easier custom model binding - #848

Merged
jonsequitur merged 2 commits into
dotnet:masterfrom
jonsequitur:enable-specifying-ModelBinder
Apr 13, 2020
Merged

enable easier custom model binding#848
jonsequitur merged 2 commits into
dotnet:masterfrom
jonsequitur:enable-specifying-ModelBinder

Conversation

@jonsequitur

@jonsequitur jonsequitur commented Apr 12, 2020

Copy link
Copy Markdown
Contributor

There are a few changes here:

  • Added BindingContext.AddModelBinder to enable specifying a model binder other than the one that would be generated by convention.
  • IValueDescriptor.Type is renamed to ValueType
  • Removed the expression-based HandlerDescriptor.FromExpression methods.

@jonsequitur
jonsequitur requested a review from Keboo April 12, 2020 18:09
Comment thread src/System.CommandLine/Binding/BindingContext.cs Outdated
Comment thread src/System.CommandLine/Invocation/ServiceProvider.cs
Comment thread src/System.CommandLine/Invocation/ServiceProvider.cs Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants