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

Combining ToView and ToTable #21172

Closed
bdebaere opened this issue Jun 8, 2020 · 2 comments
Closed

Combining ToView and ToTable #21172

bdebaere opened this issue Jun 8, 2020 · 2 comments
Labels
closed-no-further-action The issue is closed and no further action is planned. customer-reported

Comments

@bdebaere
Copy link

bdebaere commented Jun 8, 2020

Would it be possible to consider the following feature: I'm trying to use a view for SELECT operations and a table for DELETE, INSERT, and UPDATE operations.

I used to have a custom EntityFrameworkCore version for this, but with 3.x came the return of the ToView method, and the solution to my problem I thought. I'd like to configure both ToView and ToTable for a given model, and have EntityFrameworkCore automatically pick the view for SELECT operations and the table for DELETE, INSERT, and UPDATE operations.

I'd be willing to write this extension myself, but before I begin work I'd like to know if this would be accepted.

@ajcvickers
Copy link
Member

@bdebaere This should already work in the EF Core 5.0 preview. Can you try it and let us know if you run into issues.

@bdebaere
Copy link
Author

bdebaere commented Jun 9, 2020

@ajcvickers I can confirm that this works for 5.0.0-preview.4.20220.10, but does not work for 3.1.4.

@bdebaere bdebaere closed this as completed Jun 9, 2020
@ajcvickers ajcvickers added closed-no-further-action The issue is closed and no further action is planned. and removed type-enhancement labels Jun 9, 2020
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-no-further-action The issue is closed and no further action is planned. customer-reported
Projects
None yet
Development

No branches or pull requests

2 participants