Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

mvc model validation for decimal type

[RegularExpression(@"^d+.d{0,2}$")]
[Range(0, 9999999999999999.99)]
public decimal Property { get; set; }
Source by entityframework.net #
 
PREVIOUS NEXT
Tagged: #mvc #model #validation #decimal #type
ADD COMMENT
Topic
Name
1+2 =