SpecificationBusinessRuleT Method |
Creates a specification that holds information about a business rule that must be executed.
Namespace:
Enkoni.Framework
Assembly:
Enkoni.Framework.Specifications (in Enkoni.Framework.Specifications.dll) Version: 1.3.0.1
Syntaxpublic static ISpecification<T> BusinessRule<T>(
string ruleName,
params Object[] ruleArguments
)
Public Shared Function BusinessRule(Of T) (
ruleName As String,
ParamArray ruleArguments As Object()
) As ISpecification(Of T)
public:
generic<typename T>
static ISpecification<T>^ BusinessRule(
String^ ruleName,
... array<Object^>^ ruleArguments
)
static member BusinessRule :
ruleName : string *
ruleArguments : Object[] -> ISpecification<'T>
Parameters
- ruleName
- Type: SystemString
The name of the rule that must be executed. - ruleArguments
- Type: SystemObject
The arguments that must be used by the business rule.
Type Parameters
- T
- The type of object that is ultimately selected by the specification.
Return Value
Type:
ISpecificationTA specification that holds information about a business rule.
See Also