title: How to structure PetaPOCO generated code in a 3 tier application?
body: <p>Earlier I always used to hand code the DAL and the Entities.  I would have a separate project called say MyEntities which would contain all the classes which map to database tables. The MyEntities assembly was then referenced by all the three tiers of the app, namely the DAL, BLL and the Presentation Layer. </p>
  
  <p>Now I am trying out PetaPoco and used the T4 templates to auto-generate the Entity classes. This is awesome. But the problem is that these are generated in the DAL. Thus I have to provide reference to DAL dll in BLL and even Presentation Layer, which is incorrect. </p>
  
  <p>What should be done in such cases?</p>