Fixing a bug where view gen would not work for context derived directly from DbContext