Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

TModel placeholder at design time causes errors when @model isn't fully qualified #1222

Closed
NTaylorMullen opened this issue Apr 14, 2017 · 2 comments
Assignees

Comments

@NTaylorMullen
Copy link
Contributor

For @model LoginViewModel we generate using TModel = LoginViewModel. This is invalid, the type has to be fully qualified in the using statement but not in the model statement. Instead we should have the TModel always use System.Object.

@rynowak
Copy link
Member

rynowak commented Apr 14, 2017

Go ahead and fix this one 👍

NTaylorMullen added a commit that referenced this issue Apr 14, 2017
- Prior to this TModel would be set to a potentially non-fully qualified name. This would cause errors in default MVC templates.
- Regenerated test files to reflect new TModel.
- Updated unit test to reflect new behavior.

#1222
@NTaylorMullen
Copy link
Contributor Author

NTaylorMullen commented Apr 14, 2017

6f7cb76

NTaylorMullen added a commit that referenced this issue Apr 14, 2017
- Prior to this TModel would be set to a potentially non-fully qualified name. This would cause errors in default MVC templates.
- Regenerated test files to reflect new TModel.
- Updated unit test to reflect new behavior.

#1222
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants