❔ ASP.NET CORE Can't deselect context class
I want to leave the data context class blank but I am not allowed to
![](https://utfs.io/f/f9484018-a2c6-4047-a7a9-058e1d7208f7-1nq2cb.png)
7 Replies
Why do you want to deselect it tho?
It doesn't work otherwise
and it is how I am meant to do it
But sicne I selected it once it won't let me deselect
![](https://utfs.io/f/5e545bb8-06d4-46a0-8f9b-894f422541c0-1nq2cb.png)
This is what happens when I use the ViewModel i need with it
@Angius
Ah
Well, here comes the limitation of generators
They assume you want to generate the code for your database models
If you want to generate it for some viewmodel... I don't think you can
Just create it manually, IMHO
I learned to not rely on generation, since the generated code is often shit
Yeah it's just I;m doing this for a unit in school and we weren't rlly thought about anything of the code
I'll do that I guess
Kind of unfortunate because if I didn't try the first time to do it with a context class it would've let me leave it out
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.