1

I have two separate projects, one that holds EF pocos and the MyDb.tt file that generates them. That project compiles fine.

The remaining project that holds the MyDb.edmx will not compile. It has many errors saying "could not found"

The errors are coming from MyDb.Context.cs from lines like this:

public DbSet<Gender> Genders { get; set; }

If I add a using statement e.g. "MyPocosProj" to the top of this file the errors go away. Is this what I need to do or ??

BTW: I followed the instructions in this question

Community
  • 1
  • 1
O.O
  • 11,077
  • 18
  • 94
  • 182

0 Answers0