populus
✅ ForeignKey Entity Framework and Identity
I've got the following classes: "Account", "Post", "Tag" and "Image".
The "Post" class contains the following:
I can't seem to quite understand how this type of mapping works. Why can't the Lists simply reference the correct AccountId? I see no reason there could not be different fields referencing the same "Id" for different purposes.
What am I doing wrong?
24 replies
❔ Unsupported Media Type - Razor page
I haven't run into this type of problem before.
Setting breakpoints in Visual Studio isn't triggering the breakpoints. It just shows me the first code-block provided in the browser.
Here's the "Pages/Account/Register.cshtml":
6 replies
❔ Invalid column name 'CityId'.
Working on MVC and EF, created repos,services,viewmodels etc. About to fire up and see if everything is working, accessing the People index causes user-handled exception 'Invalid column name 'CityId''.
I have not explicitly typed 'CityId' anywhere, wondering where this variable comes from. Any takers?
6 replies
Nested KeyValuePair
I want to create a to-do / shopping list and need to write up price in selected currency and also have a datapoint for things like subscriptions or even due bills.
Any other type that would be simpler than what I'm trying to do here? If no, what's wrong with what I'm doing?
6 replies