1

I have a database which holds views, and in my old pre-Core app, I relied on it heavily to retrieve information.

However, with EF 7 - using dnx ef dbcontext scaffold "Data Source=myServerName; Initial Catalog=myDatabaseName; Integrated Security=True" EntityFramework.SqlServer only scaffolds/allows me to use tables. Is there anyway I can access my view data with EF 7?

1 Answer 1

3

Unfortunately no. EF Core does not support views (yet). See this issue on EF Core: https://github.com/aspnet/EntityFramework/issues/1679

Sign up to request clarification or add additional context in comments.

2 Comments

Great thanks for the reply. Good to know that it's being worked on.
but EF Core itself supports views right - I just have to manually create them

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.