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:
Microsoft have a page on upgrading to EF6: https://docs.microsoft.com/en-us/ef/ef6/what-is-new/upgrading-to-ef6
Note: This may be same content @Kim Ki Won shows above but that link no longer works.