✅ '' does not contain a definition for '' and no accessible extension method '' can be found
I have this data model
And the error pops out in the OnModelCreating method:
`
I have tried to inject the Employee keys into the neighbouring data model like this, but to no avail
Could anyone point me in the right direction?
2 Replies
did you want it to be
public Person Person { get; set; }
in Employee
?Oh, this comment was actually helpful 🙂 I just got it resolved by changing one line of a code like this:
The error was the Employee property had the data type of string so it triggered the error. Your comment made me realise this, thanks a lot 🙂