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

Generic Repository is not compatible with regular repositories #30

Open
kerajel opened this issue Feb 17, 2023 · 1 comment
Open

Generic Repository is not compatible with regular repositories #30

kerajel opened this issue Feb 17, 2023 · 1 comment

Comments

@kerajel
Copy link

kerajel commented Feb 17, 2023

That is, if you try to save a customer via generic repository with a List<Order> and these orders came from scoped IOrderRepository (that is supposed to use the same ApplicationContext) then generic repository will assume these orders are new and will try to insert them into database which is incorrect.

@TanvirArjel
Copy link
Owner

@kerajel Could you please provide a minimal repo so that I can reproduce the issue?

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

No branches or pull requests

2 participants