Click or drag to resize
RuleSetExtensionsAddModel Method
Allows adding individual models as part of a ruleset

Namespace: FlexRule.Core.Model
Assembly: FlexRule.Core.Element (in FlexRule.Core.Element.dll) Version: 0.0.0.0 (0.0.0.0)
Syntax
C#
public static void AddModel(
	this IRuleSet rs,
	string query,
	params IElementModel[] models
)

Parameters

rs
Type: FlexRule.Core.ModelIRuleSet
RuleSet to append the loaded models to in specific location as query
query
Type: SystemString
Address of a model. Can be nested by / i.e. rules/flows/purchase
models
Type: FlexRule.Core.ModelIElementModel
List of models to be added into the query section

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IRuleSet. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also