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
// Licensed to the .NET Foundation under one or more agreements.
2
+
// The .NET Foundation licenses this file to you under the MIT license.
3
+
4
+
usingSystem.ComponentModel.DataAnnotations;
5
+
usingMicrosoft.Extensions.Validation;
6
+
7
+
namespaceBasicTestApp.ValidationModels;
8
+
#pragma warning disable ASP0029// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
9
+
[ValidatableType]
10
+
#pragma warning restore ASP0029// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
11
+
publicclassPerson:IValidatableObject
12
+
{
13
+
[Required]
14
+
publicboolIsACat{get;set;}
15
+
16
+
[Range(0,int.MaxValue,ErrorMessage="Under-zeros should not be filling out forms")]
0 commit comments