C
C#2y ago
Jake

❔ ASP.NET CORE Can't deselect context class

I want to leave the data context class blank but I am not allowed to
7 Replies
Angius
Angius2y ago
Why do you want to deselect it tho?
Jake
Jake2y ago
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
Jake
Jake2y ago
Jake
Jake2y ago
This is what happens when I use the ViewModel i need with it @Angius
Angius
Angius2y ago
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
Jake
Jake2y ago
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
Accord
Accord2y ago
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.