Class BindFromAttribute
use this attribute to specify the name of route param, query param, or form field if it's different from the name of the property being bound to.
Inherited Members
Namespace: FastEndpoints
Assembly: FastEndpoints.Attributes.dll
Syntax
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class BindFromAttribute : Attribute
Constructors
BindFromAttribute(string)
use this attribute to specify the name of route param, query param, or form field if it's different from the name of the property being bound to.
Declaration
public BindFromAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | the name to use for binding |
Properties
Name
the name of the incoming query param, route param or form field
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |