Search code examples
c#linqentity-framework

Missing GetTable<TEntity>() in database context


I have System.Data.Linq in references, and also included as namespace, but my database context does not have GetTable method. It's just not there, no matter what I do.

It's an MVC5 project, on .NET 4.5.1, with Entity Framework 6.

Does anyone have any idea why this might be happening?


Solution

  • I think you are looking for Set<TEntity>()