Assembly: Microsoft.VisualStudio.Modeling.Sdk (in microsoft.visualstudio.modeling.dll)
You define a class derived from TransactionRollingBackRule when you want to do something programmatically when an object of a specific type is added to the model.
Aattribute placed on the class indicates what type of object the Rule works on and when the rule should fire (inline, local transaction commit, or top level transaction commit).
The rule is called when the specified type of transaction is being rolled back in the model.
You can also define rules for when a transaction is beginning () and when a transaction is committing ( ).