C# Class Castle.MonoRail.ActiveRecordSupport.ARFetchAttribute

Inheritance: System.Attribute, IParameterBinder
Mostrar archivo Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
ARFetchAttribute ( ) : System

Constructs an ARFetchAttribute using the parameter name as the ARFetchAttribute.RequestParameterName

ARFetchAttribute ( String requestParameterName ) : System

Constructs an ARFetchAttribute specifing the parameter name ARFetchAttribute.RequestParameterName

ARFetchAttribute ( String requestParameterName, bool create, bool required ) : System

Constructs an ARFetchAttribute specifying the parameter name and the create and require behavior

ARFetchAttribute ( bool create, bool require ) : System

Constructs an ARFetchAttribute using the parameter name as the ARFetchAttribute.RequestParameterName and the create and require behavior

Bind ( SmartDispatcherController controller, ParameterInfo parameterInfo ) : object
CalculateParamPoints ( SmartDispatcherController controller, ParameterInfo parameterInfo ) : int

Method Details

ARFetchAttribute() public method

Constructs an ARFetchAttribute using the parameter name as the ARFetchAttribute.RequestParameterName
public ARFetchAttribute ( ) : System
return System

ARFetchAttribute() public method

Constructs an ARFetchAttribute specifing the parameter name ARFetchAttribute.RequestParameterName
public ARFetchAttribute ( String requestParameterName ) : System
requestParameterName String
return System

ARFetchAttribute() public method

Constructs an ARFetchAttribute specifying the parameter name and the create and require behavior
public ARFetchAttribute ( String requestParameterName, bool create, bool required ) : System
requestParameterName String The parameter name to be read from the request
create bool true if you want an instance even when the record is not found
required bool true if you want an exception if the record is not found
return System

ARFetchAttribute() public method

Constructs an ARFetchAttribute using the parameter name as the ARFetchAttribute.RequestParameterName and the create and require behavior
public ARFetchAttribute ( bool create, bool require ) : System
create bool true if you want an instance even when the record is not found
require bool true if you want an exception if the record is not found
return System

Bind() public method

public Bind ( SmartDispatcherController controller, ParameterInfo parameterInfo ) : object
controller SmartDispatcherController
parameterInfo System.Reflection.ParameterInfo
return object

CalculateParamPoints() public method

public CalculateParamPoints ( SmartDispatcherController controller, ParameterInfo parameterInfo ) : int
controller SmartDispatcherController
parameterInfo System.Reflection.ParameterInfo
return int