Last post Jun 03, 2018 06:52 PM by EnenDaveyBoy
Jun 03, 2018 02:20 PM|EnenDaveyBoy|LINK
I want to have multiple model bindings for date time formats, but when i do i get
HttpException (0x80004005): An item with the same key has already been added.
How do i go about having mutiple custom model bindings from the same datatype.
Even this tutorial has two model bindings and no where does it mention not being able to use both:
I actually also want one for a start date and end date.
Jun 03, 2018 05:07 PM|bruce (sqlwork.com)|LINK
Jun 03, 2018 06:52 PM|EnenDaveyBoy|LINK
Because they are named differently and you could assign the named bind to the property via an attribute.
but i get what your saying
I think i should be looking at this another way and using the model binding with a custom validator