Table of Contents

Class FromRequestAttribute

Namespace
Cratis.Applications.ModelBinding
Assembly
Cratis.Applications.dll

Specifies that a parameter or property should be bound using the request body and allowing to be combined with route and query string using [FromRoute], [FromQuery] inside the object.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Parameter)]
public sealed class FromRequestAttribute : Attribute, IBindingSourceMetadata
Inheritance
FromRequestAttribute
Implements
Inherited Members

Properties

BindingSource

Gets the BindingSource.

public BindingSource? BindingSource { get; }

Property Value

BindingSource

Remarks

The BindingSource is metadata which can be used to determine which data sources are valid for model binding of a property or parameter.