@@ -45,6 +45,7 @@ Example error: *'Surname' should not be equal to 'Foo'*
45
45
String format args:
46
46
* ` {PropertyName} ` – Name of the property being validated
47
47
* ` {ComparisonValue} ` – Value that the property should not equal
48
+ * ` {ComparisonProperty} ` – Name of the property being compared against (if any)
48
49
* ` {PropertyValue} ` – Current value of the property
49
50
50
51
Optionally, a comparer can be provided to ensure a specific type of comparison is performed:
@@ -80,6 +81,7 @@ Example error: *'Surname' should be equal to 'Foo'*
80
81
String format args:
81
82
* ` {PropertyName} ` – Name of the property being validated
82
83
* ` {ComparisonValue} ` – Value that the property should equal
84
+ * ` {ComparisonProperty} ` – Name of the property being compared against (if any)
83
85
* ` {PropertyValue} ` – Current value of the property
84
86
85
87
``` csharp
@@ -169,6 +171,7 @@ Notes: Only valid on types that implement `IComparable<T>`
169
171
String format args:
170
172
* ` {PropertyName} ` – Name of the property being validated
171
173
* ` {ComparisonValue} ` – Value to which the property was compared
174
+ * ` {ComparisonProperty} ` – Name of the property being compared against (if any)
172
175
* ` {PropertyValue} ` – Current value of the property
173
176
174
177
## Less Than Or Equal Validator
@@ -185,6 +188,7 @@ Example error: *'Credit Limit' must be less than or equal to 100.*
185
188
Notes: Only valid on types that implement ` IComparable<T> `
186
189
* ` {PropertyName} ` – Name of the property being validated
187
190
* ` {ComparisonValue} ` – Value to which the property was compared
191
+ * ` {ComparisonProperty} ` – Name of the property being compared against (if any)
188
192
* ` {PropertyValue} ` – Current value of the property
189
193
190
194
## Greater Than Validator
@@ -201,6 +205,7 @@ Example error: *'Credit Limit' must be greater than 0.*
201
205
Notes: Only valid on types that implement ` IComparable<T> `
202
206
* ` {PropertyName} ` – Name of the property being validated
203
207
* ` {ComparisonValue} ` – Value to which the property was compared
208
+ * ` {ComparisonProperty} ` – Name of the property being compared against (if any)
204
209
* ` {PropertyValue} ` – Current value of the property
205
210
206
211
## Greater Than Or Equal Validator
@@ -217,6 +222,7 @@ Example error: *'Credit Limit' must be greater than or equal to 1.*
217
222
Notes: Only valid on types that implement ` IComparable<T> `
218
223
* ` {PropertyName} ` – Name of the property being validated
219
224
* ` {ComparisonValue} ` – Value to which the property was compared
225
+ * ` {ComparisonProperty} ` – Name of the property being compared against (if any)
220
226
* ` {PropertyValue} ` – Current value of the property
221
227
222
228
## Predicate Validator
0 commit comments