mardi 19 janvier 2016

MVC 3 to MVC 5 project issue

I do not use on a daily basis MVC and I have a strange error.

System.Data.SqlClient.SqlException: Invalid column name 'ytworkspace_sharesOption_enum'.

Invalid column name 'ytworkspace_optimisationObjective_enum'.

except that

Public Enum_ShareTypes.Enums ytworkspace_sharesOption_enum 
get {return Enum_ShareTypes.getEnum (ytworkspace_sharesOption); }
set {this.ytworkspace_sharesOption = Enum_ShareTypes.getNumber (value); }

Public Enum_OptimisationObjective.EnumO ytworkspace_optimisationObjective_enum       
get {return Enum_OptimisationObjective.getEnum (ytworkspace_optimisationObjective); }
set {this.ytworkspace_optimisationObjective = Enum_OptimisationObjective.getNumber (value); }


Previously, it was the MVC version 3.0.0 and it worked but after moving the new version 5.0.0 MVC stopped working. I had to change the variable names because they clung to Enum types. Thanks for the help


Aucun commentaire:

Enregistrer un commentaire