9 references to BindingBehavior
Microsoft.AspNetCore.Mvc.Core (9)
ModelBinding\BindingBehaviorAttribute.cs (5)
9/// Specifies the <see cref="BindingBehavior"/> that should be applied. 17/// <param name="behavior">The <see cref="BindingBehavior"/> to apply.</param> 18public BindingBehaviorAttribute(BindingBehavior behavior) 24/// Gets the <see cref="BindingBehavior"/> to apply. 26public BindingBehavior Behavior { get; }
ModelBinding\BindNeverAttribute.cs (1)
20: base(BindingBehavior.Never)
ModelBinding\BindRequiredAttribute.cs (1)
20: base(BindingBehavior.Required)
ModelBinding\Metadata\DefaultBindingMetadataProvider.cs (2)
70context.BindingMetadata.IsBindingAllowed = bindingBehavior.Behavior != BindingBehavior.Never; 71context.BindingMetadata.IsBindingRequired = bindingBehavior.Behavior == BindingBehavior.Required;