1. Add new empty model
2. Add code generation item. (ef6 dbcontext template)
3. Update model from database or generate DDL
Error shown:
---------------------------
Microsoft Visual Studio
---------------------------
An exception of type 'System.Runtime.InteropServices.COMException' occurred while attempting to generate the database script from the model. The exception message is: 'A file or folder with the name 'Model1.Context.tt' already exists. Please give a unique name to the item you are adding, or delete the existing item first.'.
---------------------------
OK
---------------------------
2. Add code generation item. (ef6 dbcontext template)
3. Update model from database or generate DDL
Error shown:
---------------------------
Microsoft Visual Studio
---------------------------
An exception of type 'System.Runtime.InteropServices.COMException' occurred while attempting to generate the database script from the model. The exception message is: 'A file or folder with the name 'Model1.Context.tt' already exists. Please give a unique name to the item you are adding, or delete the existing item first.'.
---------------------------
OK
---------------------------