hoofedear
✅ I want to get duplicate items in my List (EF Core)
Hm okay so what I have so far is a List<Card> inside of my DeckContents class, with the DeckId as the Key. Is that right? Because a Deck has the details of the Deck (Name, description, Owner) and DeckContents is purely for keeping track of what Cards are in the Deck
49 replies
✅ I want to get duplicate items in my List (EF Core)
Thanks for the tip! And could you explain the idea of not using IDs? What I have is a table called
DeckContents
and it’s basically a M-M relation of DeckIDs and CardIDs, so what I do is when I pull the deckList, I get all CardIDs that match the DeckID I’m grabbing. Is there a better way?49 replies