jefflaia
jefflaia
I've found a way to let it work. in your Application_Start don't clear ModelValidatorProviders.provoders, and don't add LocalizedModelValidatorProvider to Providers collection, just set the ModelMetadataProviders.Current to LocalizedModelMetadataProvider. The follow example...
Hi jgauffin, I noticed in your code the class ValidationAttributeAdapterFactory constructor calls MapDefaultRules(), only init the built-in Model Client Validation Rules. can you provide a way to add more client...
step 1: modify the class LocalizedModelValidatorProvider, add a property as following code: ``` public ValidationAttributeAdapterFactory ClientValidationRuleFactory { get { return _adapterFactory; } } ``` step 2: add helper class in...
The SqlParameterCollection only accepts non-null SqlParameter type objects, not SqlParameter objects
> Fixed by changing `using System.Data.SqlClient` to `using Microsoft.Data.SqlClient` This is the correct solution! It solved my issue.