c# - How to specify a min but no max decimal using the range data annotation attribute? -


I would like to specify that the value should be a decimal area> = 0, but I really do not want to apply A maximum value

Even what I have so far ... I'm not sure what is the right way to do this. [class (typical), "0", "??"] public decimal value {get; set;}

about something like this:

  [range (0.0, double.maxvalue)]  

You should do what you want and you can avoid using the wire.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -