Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Created Unassigned: 'Model.Context.tt already exists' -- Designer attempts to add template when one has already been added. [1176]

$
0
0
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
---------------------------


Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>