I watched a ScottGu video where it introduces a DBContext that looks interesting, but it seems that to summarize the concept, you should always manually declare tables that want to be accessible through the DBContext class.
Basically, if I understood his video correctly, you need to declare a class that inherits from DbContext, something like this:
public class MyDB: DbContext { public DbSet<User> Users { get; set; } }
My question is: do I really need to manually add all entities? So what if I import stored procedures ? What am I declaring in my newly created MyDB class?
What is the right way to do this if you already have stored procedures that you want to use?
source share