1 write to Attributes
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\Validation\ClientModelValidationContext.cs (1)
25
Attributes
= attributes;
107 references to Attributes
Microsoft.AspNetCore.Mvc.DataAnnotations (29)
CompareAttributeAdapter.cs (3)
26
MergeAttribute(context.
Attributes
, "data-val", "true");
27
MergeAttribute(context.
Attributes
, "data-val-equalto", GetErrorMessage(context));
28
MergeAttribute(context.
Attributes
, "data-val-equalto-other", _otherProperty);
DataTypeAttributeAdapter.cs (2)
30
MergeAttribute(context.
Attributes
, "data-val", "true");
31
MergeAttribute(context.
Attributes
, RuleName, GetErrorMessage(context));
FileExtensionsAttributeAdapter.cs (3)
34
MergeAttribute(context.
Attributes
, "data-val", "true");
35
MergeAttribute(context.
Attributes
, "data-val-fileextensions", GetErrorMessage(context));
36
MergeAttribute(context.
Attributes
, "data-val-fileextensions-extensions", _extensions);
MaxLengthAttributeAdapter.cs (3)
25
MergeAttribute(context.
Attributes
, "data-val", "true");
26
MergeAttribute(context.
Attributes
, "data-val-maxlength", GetErrorMessage(context));
27
MergeAttribute(context.
Attributes
, "data-val-maxlength-max", _max);
MinLengthAttributeAdapter.cs (3)
25
MergeAttribute(context.
Attributes
, "data-val", "true");
26
MergeAttribute(context.
Attributes
, "data-val-minlength", GetErrorMessage(context));
27
MergeAttribute(context.
Attributes
, "data-val-minlength-min", _min);
NumericClientModelValidator.cs (2)
20
MergeAttribute(context.
Attributes
, "data-val", "true");
21
MergeAttribute(context.
Attributes
, "data-val-number", GetErrorMessage(context.ModelMetadata));
RangeAttributeAdapter.cs (4)
34
MergeAttribute(context.
Attributes
, "data-val", "true");
35
MergeAttribute(context.
Attributes
, "data-val-range", GetErrorMessage(context));
36
MergeAttribute(context.
Attributes
, "data-val-range-max", _max);
37
MergeAttribute(context.
Attributes
, "data-val-range-min", _min);
RegularExpressionAttributeAdapter.cs (3)
21
MergeAttribute(context.
Attributes
, "data-val", "true");
22
MergeAttribute(context.
Attributes
, "data-val-regex", GetErrorMessage(context));
23
MergeAttribute(context.
Attributes
, "data-val-regex-pattern", Attribute.Pattern);
RequiredAttributeAdapter.cs (2)
30
MergeAttribute(context.
Attributes
, "data-val", "true");
31
MergeAttribute(context.
Attributes
, "data-val-required", GetErrorMessage(context));
StringLengthAttributeAdapter.cs (4)
28
MergeAttribute(context.
Attributes
, "data-val", "true");
29
MergeAttribute(context.
Attributes
, "data-val-length", GetErrorMessage(context));
33
MergeAttribute(context.
Attributes
, "data-val-length-max", _max);
38
MergeAttribute(context.
Attributes
, "data-val-length-min", _min);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (59)
CompareAttributeAdapterTest.cs (9)
40
context.
Attributes
,
83
context.
Attributes
,
118
context.
Attributes
,
155
context.
Attributes
,
195
context.
Attributes
,
223
context.
Attributes
.Add("data-val", "original");
224
context.
Attributes
.Add("data-val-equalto", "original");
225
context.
Attributes
.Add("data-val-equalto-other", "original");
232
context.
Attributes
,
FileExtensionsAttributeAdapterTest.cs (7)
40
context.
Attributes
,
91
context.
Attributes
,
126
context.
Attributes
,
146
context.
Attributes
.Add("data-val", "original");
147
context.
Attributes
.Add("data-val-fileextensions", "original");
148
context.
Attributes
.Add("data-val-fileextensions-extensions", "original");
155
context.
Attributes
,
MaxLengthAttributeAdapterTest.cs (8)
43
context.
Attributes
,
70
context.
Attributes
,
99
context.
Attributes
,
132
context.
Attributes
,
154
context.
Attributes
.Add("data-val", "original");
155
context.
Attributes
.Add("data-val-maxlength", "original");
156
context.
Attributes
.Add("data-val-maxlength-max", "original");
163
context.
Attributes
,
MinLengthAttributeAdapterTest.cs (7)
43
context.
Attributes
,
70
context.
Attributes
,
98
context.
Attributes
,
119
context.
Attributes
.Add("data-val", "original");
120
context.
Attributes
.Add("data-val-minlength", "original");
121
context.
Attributes
.Add("data-val-minlength-min", "original");
128
context.
Attributes
,
NumericClientModelValidatorTest.cs (7)
33
context.
Attributes
,
65
context.
Attributes
,
97
context.
Attributes
,
123
context.
Attributes
,
141
context.
Attributes
.Add("data-val", "original");
142
context.
Attributes
.Add("data-val-number", "original");
149
context.
Attributes
,
RangeAttributeAdapterTest.cs (7)
37
context.
Attributes
,
73
context.
Attributes
,
96
context.
Attributes
.Add("data-val", "original");
97
context.
Attributes
.Add("data-val-range", "original");
98
context.
Attributes
.Add("data-val-range-max", "original");
99
context.
Attributes
.Add("data-val-range-min", "original");
106
context.
Attributes
,
RequiredAttributeAdapterTest.cs (5)
44
context.
Attributes
,
69
context.
Attributes
,
89
context.
Attributes
.Add("data-val", "original");
90
context.
Attributes
.Add("data-val-required", "original");
97
context.
Attributes
,
StringLengthAttributeAdapterTest.cs (9)
44
context.
Attributes
,
71
context.
Attributes
,
98
context.
Attributes
,
126
context.
Attributes
,
147
context.
Attributes
.Add("data-val", "original");
148
context.
Attributes
.Add("data-val-length", "original");
149
context.
Attributes
.Add("data-val-length-max", "original");
150
context.
Attributes
.Add("data-val-length-min", "original");
157
context.
Attributes
,
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
RemoteAttributeBase.cs (5)
145
MergeAttribute(context.
Attributes
, "data-val", "true");
149
MergeAttribute(context.
Attributes
, "data-val-remote", errorMessage);
151
MergeAttribute(context.
Attributes
, "data-val-remote-url", GetUrl(context));
155
MergeAttribute(context.
Attributes
, "data-val-remote-type", HttpMethod);
159
MergeAttribute(context.
Attributes
, "data-val-remote-additionalfields", additionalFields);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (14)
RemoteAttributeBaseTest.cs (8)
158
context.
Attributes
,
193
context.
Attributes
,
233
context.
Attributes
,
281
context.
Attributes
,
324
context.
Attributes
,
365
context.
Attributes
,
418
context.
Attributes
,
452
context.
Attributes
,
RemoteAttributeTest.cs (6)
335
context.
Attributes
.Add("data-val", "original");
336
context.
Attributes
.Add("data-val-remote", "original");
337
context.
Attributes
.Add("data-val-remote-additionalfields", "original");
338
context.
Attributes
.Add("data-val-remote-type", "original");
339
context.
Attributes
.Add("data-val-remote-url", "original");
346
context.
Attributes
,