I was checking ScottGu video where he introduces the DBContext, which looks interesting but it seems that in order to generalize the concept you have to always declare manually the tables that want to become accessible through the DBContext class.
Mainly if I understood correctly from his video, you have 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 have to manually add every entity? And what if I import Stored Procedures? What do I declare on my newly created MyDB class??
What's the right way to do this if you already have stored procedures that you want to use ??