I'm trying to create Range
with DataAnnotation
to type long
number but it always throws an exception and I can't fix it. I think the problem is because I need to type a big number as an example 07608800000070
then it throws the exception.
How could I fix this ?
I'm trying
[Range(minimum: 1, maximum: 999999999999999, ErrorMessage = "Type the Parcel ID")]
public long parcelID {get;set;}
Exception
A first chance exception of type 'System.OverflowException' occurred in mscorlib.dll