FluentValidation
FluentValidation copied to clipboard
Passing parent model instead of nested type to resolve exception thrown by FluentValidation
Fixes #76
This wouldn't work if a sub object property was changed.
Eg if a Customer has an Address, and Customer.Address.Line1 changed, then editContext.Model would be of type Customer, and it would try to validate Customer.Line1, which doesn't exist.
I've made a change in #205 that should fix the same issue, could you see if it works for your use case?