API/CodeSamples/Using-Constraints.md
... ...
@@ -49,4 +49,8 @@ AND [dbo].[Orders].[ShipCountry]=[dbo].[Invoices].[ShipCountry]
49 49
50 50
Please note that the primary key constraint is always the **last** constraint added for that particular data source. I.e. the constraint "[dbo].[Orders].[OrderID]" - "[dbo].[Invoices].[OrderID]" will be the primary key constraint. Only this constraint will be use for auto-joining and all other secondary constrains will be added to the JOIN clause later.
51 51
52
-Also note that currently there is no way to perform this action on the Report Designer. This must be done manually through code.
... ...
\ No newline at end of file
0
+Also note that currently there is no way to perform this action on the Report Designer. This must be done manually through code.
1
+
2
+###NOTE: Adding an invalid constraint will throw an fatal error unless the following setting is configured.
3
+```csharp
4
+AdHocSettings.ThrowExceptionOnAddConstraintError = false;
... ...
\ No newline at end of file