Marcoelho97
❔ I apparently have an infinite loop, but I can't fix it to work
But I still have a question, what about a create?
How would I use a DTO and not the model?
For example
I create a movie
Save
I then create a relationship
And when I go to save, it goes into loop too
30 replies
❔ System.NullReferenceException 'Object reference not set to an instance of an object.'
._.' Closed the project, re-opened and my HomeController had gone to its initial state
Tried doing the exact same thing, it's now working, for some reason :|
7 replies
✅ Multiple one to many relationships
OH! I had been trying to figure out where to put the manual part but I thought it was in the migrations, which wasn't a solution for me cause my teachers will want to delete them! That makes a lot of sense! Thank you!
Another question, though:
In the example you showed me:
How does it know that the "WithMany" will be "b.Posts"?
Mine autofilled as well, but I don't understand how it knows, considering that it only mentioned the class Post, not the class Blog
7 replies