Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Research and possible start of a fix for issue 1337 #1350

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fretje
Copy link
Contributor

@fretje fretje commented Dec 11, 2023

This includes a test for issue #1337

And possible part of a fix, but I stumbled upon another roadblock.

With the current fix, I was able to get the foreign keys of the Email entities filled properly with their respective custId, and even inserted/merged into the database, but then an exception is thrown when trying to read the output from that operation, as DbContext.Set<Email>().FromSqlRaw() is used for that, and DbContext.Set<TEntity> isn't supported for owned types.

Not sure how to tackle this... but I thought I'd throw this out there already in case someone else has ideas?

@borisdj
Copy link
Owner

borisdj commented Dec 12, 2023

Thx for contrib, don't have a solution out of the head, but will look into it.
If you manage to figure out a fix sooner, update the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants