0
A
回答
0
的範圍屬性用於確定字段的最小值和最大值的數值應該是什麼。如果你想設置最小/最大長度,我會建議使用[StringLength(10, MinimumLength=5)]
屬性來設置此屬性的約束,這將做我認爲它是你期待的
相關問題
- 1. 奇怪的範圍行爲
- 2. SOLR範圍查詢的奇怪行爲
- 3. 奇怪的JavaScript範圍行爲
- 4. 蟒蛇範圍奇怪行爲
- 5. 範圍奇怪的結果
- 6. cpp中的奇怪範圍
- 7. 奇怪的Python的功能範圍的行爲
- 8. Excel的SpecialCells方法範圍奇怪的行爲
- 9. PostgreSQL的分區範圍 - 奇怪的行爲
- 10. 使用NSRegularExpression的奇怪的字符串範圍行爲匹配
- 11. 奇怪的行爲與jQuery.ajax
- 12. 奇怪的行爲與SetTimeout
- 13. 與NSLog的奇怪行爲
- 14. 奇怪的行爲與UICollectionViewDelegate
- 15. 奇怪的行爲與jquery
- 16. 與Bitmap.Clone()的奇怪行爲
- 17. 與TThread.CreateAnonymousThread的奇怪行爲
- 18. 與OpenCV的奇怪行爲
- 19. 奇怪的行爲與NSubstitute
- 20. 與CSS的奇怪行爲
- 21. 奇怪的行爲與tableviewcontroller
- 22. 奇怪的行爲與ListActivity
- 23. 奇怪的行爲與touchDragged
- 24. 奇怪的行爲與IIS
- 25. 與NavigationBar奇怪的行爲
- 26. 與Pictureboxes的奇怪行爲
- 27. 奇怪的行爲與Linq
- 28. 奇怪的行爲與@JsonIdentityInfo
- 29. 奇怪的行爲與SKStoreProductViewController
- 30. 奇怪的行爲與html_escape
所以你說的密碼是一個__number__從5到9?很容易被破解,我會說:)你可能需要的是StringLength註釋:http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.stringlengthattribute.aspx – Tallmaris 2013-05-03 13:55:36
Errr .....哎喲?大聲笑。腦蟲。 – Fabricio 2013-05-03 13:56:34
@Tallmaris - 但我也想分鐘值.. – Fabricio 2013-05-03 13:59:12