Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enable interception of edit context model type when attempting to retrieve validator instances #74

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

RyanMarcotte
Copy link

#72 has information about the usage scenario: retrieving a validator instance for a model type that has been proxied.

  • adds MakeTypeUsingEditContextModelDelegate (object => Type)
  • FluentValidationValidator has new optional ModelTypeFunc parameter; if no value specified, then the model => model.GetType() delegate is used
  • added overload of EditContextFluentValidationExtensions.AddFluentValidation accepting MakeTypeUsingEditContextModelDelegate

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant