You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewInvalidOperationException("Only one ModelMetadataType attribute is permitted per type.",e);
236
-
}
231
+
[varattribute]=>attribute.MetadataType,
232
+
[]=>null,
233
+
[..]=>thrownewInvalidOperationException($"Multiple ModelMetadataType attributes on {type.FullName}. Only one ModelMetadataType attribute is permitted per type."),
Assert.Equal("Only one ModelMetadataType attribute is permitted per type.",exception.Message);
299
+
Assert.Equal("Multiple ModelMetadataType attributes on Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributesTest+InvalidBaseViewModel. Only one ModelMetadataType attribute is permitted per type.",exception.Message);
0 commit comments