BusinessObject.LogBusinessRuleViolation

This method can be used to log business rule violations.
This method is usually called from within the Verify() method.

public virtual void LogBusinessRuleViolation( DataSet currentDataSet,
	string tableName,
	string fieldName,
	int rowIndex,
	RuleViolationType violationType,
	string message,
	string ruleClass );

Parameters

currentDataSet
DataSet that contains the data that violated a rule.

tableName
Table that contains the violation.

fieldName
Field name that contains the violation.

rowIndex
Row (record) that contains the violation

violationType
Type (severity) of the violation.

message
Plain text message

ruleClass
Indentifying name of the rule that was broken (usually based on the name of the business rule class).


See also:

Class BusinessObject


  Last Updated: 5/23/2007 | © , 2007