AbrahamJLR
❔ Entity Framework relationship problem between entities.
Hello, I am currently doing an Entity Framework internship and I have a relationship problem between entities.
In the beginning we are given a base class "Entity", which has certain properties, its diagram is clear and simple. I associate the original class:
This class is inherited by the "User" class. Code:
My problem is the following assignment: "Create the necessary relationships between "User" and "Entity", where instead of using "String" for the properties (CreatedByUser, EditedByUser, DeletedByUser) use an instance of the "User" class.
I've been having trouble posing this assignment correctly mainly because of the inheritance present between User and Entity. What would be the correct way to approach this relationship?
22 replies