A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Hi Anusha,
You can decorate your property with Range attribute like this:
[Range(1, int.MaxValue)]
public virtual int Number { get; set; }
Hope this helps!
How to set the property to allow positve integers only?
public virutal int Number {get; set;}
How can I customize to allow positve integers only?