Skip to content

FromFormAttribute is in wrong namespace. #56162

Answered by martincostello
lbgitjp asked this question in General
Discussion options

You must be logged in to vote

This is an historical artifact - the team are aware of it, but moving it would be a hugely breaking change.

If you wish to avoid using the attribute entirely because of its presence in the MVC namespace, then you can implement your own using IFromFormMetadata like this which should work the same in a Minimal API.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lbgitjp
Comment options

Answer selected by lbgitjp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-web-frameworks *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
2 participants