The question is simple: when should I implement IModelBinder and when IModelBinderProvider?
Thanks in advance!
IModelBinderProvider is a factory that supplies IModelBinder implementations. For simple cases where a type always uses the same model binder you just need to use IModelBinder. You would implement IModelBinderProvider for more complex cases where you need to dynamically determine which model binder to use.
Jimmy Bogard and Brad Wilson explain it better than I can.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With