Marcoelho97
Marcoelho97
CC#
Created by Marcoelho97 on 4/10/2023 in #help
❔ I apparently have an infinite loop, but I can't fix it to work
It worked! Thank you so much! ♥
30 replies
CC#
Created by Marcoelho97 on 4/10/2023 in #help
❔ I apparently have an infinite loop, but I can't fix it to work
I will give this a try and give feedback :D Thank you so much!
30 replies
CC#
Created by Marcoelho97 on 4/10/2023 in #help
❔ I apparently have an infinite loop, but I can't fix it to work
That makes sense 🤔
30 replies
CC#
Created by Marcoelho97 on 4/10/2023 in #help
❔ I apparently have an infinite loop, but I can't fix it to work
So, is it happening because I'm returning the object at its full?
30 replies
CC#
Created by Marcoelho97 on 4/10/2023 in #help
❔ I apparently have an infinite loop, but I can't fix it to work
But the problem happens because of the DB Model, no? Because of that "Movie" and "MovieParticipantSeason" properties
30 replies
CC#
Created by Marcoelho97 on 4/10/2023 in #help
❔ 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
CC#
Created by Marcoelho97 on 4/10/2023 in #help
❔ I apparently have an infinite loop, but I can't fix it to work
I'll give that a go :D Thank you so much!
30 replies
CC#
Created by Marcoelho97 on 4/10/2023 in #help
❔ I apparently have an infinite loop, but I can't fix it to work
That is genius
30 replies
CC#
Created by Marcoelho97 on 4/10/2023 in #help
❔ I apparently have an infinite loop, but I can't fix it to work
So that you can "remove" the unwanted ones?
30 replies
CC#
Created by Marcoelho97 on 4/10/2023 in #help
❔ I apparently have an infinite loop, but I can't fix it to work
So Your model is ShippingOrders Your return is the ShippingOrderDetailsDto, in which you select every property you wanna return?
30 replies
CC#
Created by Marcoelho97 on 4/10/2023 in #help
❔ I apparently have an infinite loop, but I can't fix it to work
How would that work, exactly? I would use this model I already have for database creation And then another for _context.xyz?
30 replies
CC#
Created by Marcoelho97 on 12/16/2022 in #help
❔ 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
CC#
Created by Marcoelho97 on 12/16/2022 in #help
❔ System.NullReferenceException 'Object reference not set to an instance of an object.'
When I try to run the app
7 replies
CC#
Created by Marcoelho97 on 12/16/2022 in #help
❔ System.NullReferenceException 'Object reference not set to an instance of an object.'
At the Foreach, the "Model" part
7 replies
CC#
Created by Marcoelho97 on 12/11/2022 in #help
✅ Multiple one to many relationships
I see, that makes a lot of sense! Thank you so much!!! ♥
7 replies
CC#
Created by Marcoelho97 on 12/11/2022 in #help
✅ 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:
modelBuilder.Entity<Post>()
.HasOne(p => p.Blog)
.WithMany(b => b.Posts);
modelBuilder.Entity<Post>()
.HasOne(p => p.Blog)
.WithMany(b => b.Posts);
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