I started to use Entity Framework 6.0.1 version. I want to separate the generated DbContext and POCO template classes to different class library from the model. I spent a fe
Absolute paths are not required. It looks like your relative path is not correct. I am using EF6.1 and I have the POCO classes in a separate project. This is how I got it to work in VS 2013.
ADO.NET Entity Data Model
. This project will contain the DB Context
.EF6.x DbContext Generator
item to the DBContext
project.POCO
objects.[Project Name]Model.tt
file from the DbContext
project to the POCO
project.[Project Name]Model.tt
file. On line 5, I changed:const string inputFile = @"SampleModel.edmx";
const string inputFile = @"..\DbContext\SampleModel.edmx";
DbContext
project to the POCO
project.If you are using VS 2013, you can debug the template to see how your relative path is being resolved.
.tt
file..tt
file in the Solution Explorer and select "Debug T4 Template".