@David Thielen, Welcome to Microsoft Q&A, based on my test, I also find that the code could not complied. Because the code is used in EF instead of EF Core. After searching many docs, I find that you need to re-design your model. I find the following answer may be helpful for your question and you could have a check.
https://stackoverflow.com/a/51756430
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.