C# Class Kooboo.Commerce.Rules.Parameters.DefaultRuleParameterProvider

A provider providing parameters by checking the declared Kooboo.Commerce.Rules.ParamAttribute in the class properties.
Inheritance: IRuleParameterProvider
ファイルを表示 Open project: Kooboo/Ecommerce Class Usage Examples

Public Methods

Method Description
GetParameters ( Type dataContextType ) : IEnumerable
GetParameters ( Type dataContextType, object>.Func dataContextAdapter ) : IEnumerable

Gets the available parameters for the specified data context type, with a specific data context adapter to adapt original data context to the final data context to which the parameters is applicable.

Private Methods

Method Description
CreateConditionParameter ( Type containerType, RuleParameterValueResolver containerResolver, string prefix, PropertyInfo property, ParamAttribute paramAttr ) : RuleParameter
FindConditionParameters ( Type containerType, RuleParameterValueResolver containerResolver, string prefix ) : List
GetDefaultOperators ( Type propertyType ) : List
IsNullableEnum ( Type type ) : bool

Method Details

GetParameters() public method

public GetParameters ( Type dataContextType ) : IEnumerable
dataContextType System.Type
return IEnumerable

GetParameters() public method

Gets the available parameters for the specified data context type, with a specific data context adapter to adapt original data context to the final data context to which the parameters is applicable.
public GetParameters ( Type dataContextType, object>.Func dataContextAdapter ) : IEnumerable
dataContextType System.Type The data context type.
dataContextAdapter object>.Func The adapter to adapt original data context to the final data context.
return IEnumerable