Entity Framework 5 - Extending DBContext Class
问题 I don't know if I'm doing something wrong here or not... As a bit of background, I am working on an Entity Framework (v5.0) solution and was looking to add extra functionality to the DBContext class, so any tt-generated classes (that inherit from DbContext) will have that inherent functionality available to them automatically. Based upon the answer I saw here, I figured it would be as easy as simply adding in a new class that would look as follows: Imports System.Data.Entity Imports System