Open menaheme opened 10 years ago
Is anyone following up with this? Is it ok if I have a go and try to update the documentaion? I am thinking of introduce a new dependency (through NuGet) on Ninject.Web.Common
so that NinjectValidatorFactory
can be set up in Global.asax.cs
like this:
protected void Application_Start()
{
var kernel = DependendencyResolver.Current.GetService<IKernel>();
var ninjectValidatorFacotry = new NinjectValidatorFactory(kernel);
ModelValidatorProviders.Providers.Add(new FluentValidationModelValidatorProvider(ninjectValidatorFactory));
DataAnnotationsModelValidatorProvider.AddImplicitRequiredAttributeForValueTypes = false;
}
Is this solution acceptable?
Anyone got a complete guide to configuring Ninject with FluentValidation?
Hi , First of all, i am very grateful for all the work put in the Ninject project and its extensions.
to the issues: using MVC4 on VC2012 Pro, wanting Ninject + FluentValidation
google around for quite a bit got me here, and now the validator gets loaded. i think the nuget should also put the code linked above, in the proper places, especially the NinjectModule and add it to the the kernel`s initialization. the problem is that installing the extension leaves you half way through, and its not so easy to complete the task.
there`r a lot of question at StackOverflow on all 3 points, so im not the only one having a hard time.
i would very much appreciate your response.