Tuesday, 31 January 2017

MVC - Fix error - The type or namespace name 'Objects' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

Error

The type or namespace name 'Objects' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)


Watch on YouTube:


when executing the following code:
 System.Data.Objects.ObjectParameter result = new System.Data.Objects.ObjectParameter("result", typeof(int));

To fix it add the following reference
(assemblies tab, select Framework and add System.Data.Entity

No comments:

Post a Comment