7 writes to SuppressValidation
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Binders\CancellationTokenModelBinder.cs (1)
25bindingContext.ValidationState.Add(model, new ValidationStateEntry() { SuppressValidation = true });
ModelBinding\Binders\KeyedServicesModelBinder.cs (1)
37bindingContext.ValidationState.Add(model, new ValidationStateEntry() { SuppressValidation = true });
ModelBinding\Binders\ServicesModelBinder.cs (1)
31bindingContext.ValidationState.Add(model, new ValidationStateEntry() { SuppressValidation = true });
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (4)
116validationState.Add(model, new ValidationStateEntry() { Key = "parameter", SuppressValidation = true }); 141{ model, new ValidationStateEntry { SuppressValidation = true } } 270SuppressValidation = true 1234{ model, new ValidationStateEntry { SuppressValidation = true } }
9 references to SuppressValidation
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Validation\ValidationVisitor.cs (1)
328else if (entry != null && entry.SuppressValidation)
Microsoft.AspNetCore.Mvc.Core.Test (8)
ModelBinding\Binders\FormFileModelBinderTest.cs (7)
32Assert.False(entry.SuppressValidation); 66Assert.False(entry.SuppressValidation); 106Assert.False(entry.SuppressValidation); 148Assert.False(entry.SuppressValidation); 182Assert.False(entry.SuppressValidation); 218Assert.False(entry.SuppressValidation); 239Assert.False(entry.SuppressValidation);
ModelBinding\Binders\ServicesModelBinderTest.cs (1)
28Assert.True(entry.SuppressValidation);