0
cfyazilim created
Hello
How can ı call and use already created SQL views on my project?
Thanks.
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
0
Hi,
You can create a custom repository as explained in https://aspnetboilerplate.com/Pages/Documents/Repositories#custom-repositories and access the DbContext in your repository and use views over this DbContext.
You can take a look at https://www.michalbialecki.com/2020/09/09/working-with-views-in-entity-framework-core-5/ or any other sample on the web.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)