You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
This is a regression from Beta3. I have not tested with other collecition types.
create a model that is a DateTimeOffset[] or that contains a property of that array type
create an action of the form public IActionResult Dates([FromForm(Name = "")] DateTimeOffset[] model) or whatever works for your more complex type
create a matching action that invokes a view submitting to above action
run in the debugger
hit Submit in the browser
break on the first line of the action from step 2
observe
note that even though the parameter is fully-populated and the model is valid, ModelState.IsValid is false.
a similar scenario using Beta3 (and [Bind(Prefix ="")] instead of [FromForm(Name = "")]) does not have Length or similar entries in the ModelState. ModelState.IsValid is true when using that version.
This is a regression from Beta3. I have not tested with other collecition types.
DateTimeOffset[]
or that contains a property of that array typepublic IActionResult Dates([FromForm(Name = "")] DateTimeOffset[] model)
or whatever works for your more complex typeModelState.IsValid
isfalse
.[Bind(Prefix ="")]
instead of[FromForm(Name = "")]
) does not haveLength
or similar entries in theModelState
.ModelState.IsValid
istrue
when using that version./cc @harshgMSFT
The text was updated successfully, but these errors were encountered: