C# Класс Kooboo.Commerce.Rules.Parameters.DefaultRuleParameterProvider

A provider providing parameters by checking the declared Kooboo.Commerce.Rules.ParamAttribute in the class properties.
Наследование: IRuleParameterProvider
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

GetParameters() публичный Метод

public GetParameters ( Type dataContextType ) : IEnumerable
dataContextType System.Type
Результат IEnumerable

GetParameters() публичный Метод

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.
Результат IEnumerable