-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make date model binding more flexible
An IModelBinderProvider is configured that will attempt to model bind all Date, DateTime and DateOnly instances in a way that works with the Date input component. However, sometimes apps pass dates around without using the Date input component (e.g. as a query parameter) and these model binders are blocking the built-in ones from running and working. This exposes a method on our options class to create one of our model binders. With this, consumers mix in our model binders with their own as they see fit.
- Loading branch information
Showing
2 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters