14 instantiations of ValidationEntry
Microsoft.AspNetCore.Mvc.Core (8)
ModelBinding\Validation\DefaultCollectionValidationStrategy.cs (1)
125_entry = new ValidationEntry(_metadata, key, model);
ModelBinding\Validation\DefaultComplexObjectValidationStrategy.cs (4)
92_entry = new ValidationEntry(parameter, key, model: null); 102_entry = new ValidationEntry(parameter, key, () => GetModel(_model, property)); 114_entry = new ValidationEntry(property, key, model: null); 118_entry = new ValidationEntry(property, key, () => GetModel(_model, property));
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategy.cs (1)
99_entry = new ValidationEntry(_metadata, key, model);
ModelBinding\Validation\ShortFormDictionaryValidationStrategy.cs (1)
105_entry = new ValidationEntry(_metadata, _keyMappingEnumerator.Current.Key, value);
ModelBinding\Validation\ValidationVisitor.cs (1)
431var parentEntry = new ValidationEntry(Metadata, Key, Model);
Microsoft.AspNetCore.Mvc.Core.Test (6)
ModelBinding\Metadata\DefaultValidationMetadataProviderTest.cs (6)
26new ValidationEntry(), 27new ValidationEntry())); 82new ValidationEntry(), 83new ValidationEntry())); 104new ValidationEntry(), 105new ValidationEntry()));
46 references to ValidationEntry
Microsoft.AspNetCore.Mvc.Abstractions (9)
ModelBinding\ModelMetadata.cs (1)
619/// Gets the name of a model, if specified explicitly, to be used on <see cref="ValidationEntry"/>
ModelBinding\Validation\IPropertyValidationFilter.cs (4)
17/// <param name="entry"><see cref="ValidationEntry"/> to check.</param> 18/// <param name="parentEntry"><see cref="ValidationEntry"/> containing <paramref name="entry"/>.</param> 20bool ShouldValidateEntry(ValidationEntry entry, ValidationEntry parentEntry);
ModelBinding\Validation\IValidationStrategy.cs (2)
12/// Gets an <see cref="IEnumerator{ValidationEntry}"/> containing a <see cref="ValidationEntry"/> for 19IEnumerator<ValidationEntry> GetChildren(ModelMetadata metadata, string key, object model);
ModelBinding\Validation\ValidationEntry.cs (2)
15/// Creates a new <see cref="ValidationEntry"/>. 32/// Creates a new <see cref="ValidationEntry"/>.
Microsoft.AspNetCore.Mvc.Core (21)
ModelBinding\Metadata\ValidationMetadata.cs (1)
57/// Gets or sets a model name that will be used in <see cref="ValidationEntry"/>.
ModelBinding\Validation\DefaultCollectionValidationStrategy.cs (4)
56public IEnumerator<ValidationEntry> GetChildren( 89private sealed class Enumerator : IEnumerator<ValidationEntry> 95private ValidationEntry _entry; 110public ValidationEntry Current => _entry;
ModelBinding\Validation\DefaultComplexObjectValidationStrategy.cs (4)
26public IEnumerator<ValidationEntry> GetChildren( 34private sealed class Enumerator : IEnumerator<ValidationEntry> 43private ValidationEntry _entry; 71public ValidationEntry Current => _entry;
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategy.cs (4)
49public IEnumerator<ValidationEntry> GetChildren( 58private sealed class Enumerator : IEnumerator<ValidationEntry> 65private ValidationEntry _entry; 80public ValidationEntry Current => _entry;
ModelBinding\Validation\ShortFormDictionaryValidationStrategy.cs (4)
57public IEnumerator<ValidationEntry> GetChildren( 66private sealed class Enumerator : IEnumerator<ValidationEntry> 72private ValidationEntry _entry; 84public ValidationEntry Current => _entry;
ModelBinding\Validation\ValidateNeverAttribute.cs (2)
18public bool ShouldValidateEntry(ValidationEntry entry, ValidationEntry parentEntry)
ModelBinding\Validation\ValidationVisitor.cs (2)
431var parentEntry = new ValidationEntry(Metadata, Key, Model); 435var entry = enumerator.Current;
Microsoft.AspNetCore.Mvc.Core.Test (12)
ModelBinding\Validation\DefaultCollectionValidationStrategyTest.cs (3)
141private List<ValidationEntry> BufferEntries(IEnumerator<ValidationEntry> enumerator) 143var entries = new List<ValidationEntry>();
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (3)
186private List<ValidationEntry> BufferEntries(IEnumerator<ValidationEntry> enumerator) 188var entries = new List<ValidationEntry>();
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategyTest.cs (3)
201private List<ValidationEntry> BufferEntries(IEnumerator<ValidationEntry> enumerator) 203var entries = new List<ValidationEntry>();
ModelBinding\Validation\ShortFormDictionaryValidationStrategyTest.cs (3)
138private List<ValidationEntry> BufferEntries(IEnumerator<ValidationEntry> enumerator) 140var entries = new List<ValidationEntry>();
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
ValidationIntegrationTests.cs (2)
1539public bool ShouldValidateEntry(ValidationEntry entry, ValidationEntry parentEntry)
ValidationWithRecordIntegrationTests.cs (2)
1349public bool ShouldValidateEntry(ValidationEntry entry, ValidationEntry parentEntry)