0b006fbb334ebaaf455ea37097859cd2047aeb2e
FAQ/Questions/MultipleConstraints.md
| ... | ... | @@ -14,19 +14,19 @@ Multiple constraints can be stored in application as below. |
| 14 | 14 | |
| 15 | 15 | |
| 16 | 16 | |
| 17 | -1) Before adding constraints, put this line of code: |
|
| 17 | +**a.** Before adding constraints, put this line of code: |
|
| 18 | 18 | |
| 19 | - Izenda.AdHoc.Database.Driver driver = AdHocContext.Driver; |
|
| 19 | + ***Izenda.AdHoc.Database.Driver driver = AdHocContext.Driver;*** |
|
| 20 | 20 | |
| 21 | 21 | and change all their "AdHocContext.Driver.AddConstraint(...)" lines to "driver.AddConstraint(...)" |
| 22 | 22 | |
| 23 | -2) Add following line of code right before adding first custom constraint: |
|
| 23 | +**b.** Add following line of code right before adding first custom constraint: |
|
| 24 | 24 | |
| 25 | - AdHocContext.Driver.BeginAddingMultipleConstraints(); |
|
| 25 | + ***AdHocContext.Driver.BeginAddingMultipleConstraints();*** |
|
| 26 | 26 | |
| 27 | -3) Add following line of code right after adding last custom constraint: |
|
| 27 | +**c.** Add following line of code right after adding last custom constraint: |
|
| 28 | 28 | |
| 29 | - AdHocContext.Driver.EndAddingMultipleConstraints(); |
|
| 29 | + ***AdHocContext.Driver.EndAddingMultipleConstraints();*** |
|
| 30 | 30 | |
| 31 | 31 | ##Global.asax (C♯) |
| 32 | 32 | ```csharp |