After upgrading our project from using Entity Framework 5 to Entity Framework 6 (though NuGets update function) i get the following error on my generated Entities class:
I know this is late to respond to the question but.
This work For me by following the below steps.
Copy the code form the existing abc.tt file. Delete the abc.tt file. Copy all the code again into ABC.tt file. After copy code just save the file and build the solution it will regenerate the complete .cs file as well