MVC Foolproof Validation using PassOnNull - Nullable or “01.01.0001 00:00:00”

不问归期 提交于 2019-12-01 14:09:07

Ok after reading http://foolproof.codeplex.com/discussions/220498 on Codeplex I now know it works the other way round:

<Required()> _
<DisplayName("Event Start")> _
<LessThan("EventEnd", PassOnNull:=True)> _
Public Property EventStart As Nullable(Of DateTime)

<DisplayName("Event End")> _
Public Property EventEnd As Nullable(Of DateTime)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!