I am using PetaPoco Micro-ORM with my ASP.NET 4.0 project.
PetaPoco T4 template (Database.tt) generated a file Database.cs. I want to change the name and location of this auto-generated file containing mappings to the database tables. I therefore, copied this file to the APP_DATA folder of my solution explorer and renamed it to EmployeePOCO.cs.
The problem is when I want to update the model (EmployeePOCO.cs) from the database. Each time I delete the old Database.cs file and re-generate it using Database.tt. Than I copy this new Database.cs file to APP_DATA and rename it to EmployeePOCO.cs.
Is there a way to update existing EmployeePOCO.cs file?