universalglove
asked on
Implementing an Extension to EntityDataSource in VWD 2010
In Visual Web Developer 2010, I'm trying to implement the extension to EntityDataSource described on this page that enables Insert() to be used as a method:
http://social.msdn.microsoft.com/forums/en-US/adodotnetentityframework/thread/d8a3ecd8-55dd-45ad-8175-d7ce912f46c2/
I get a compile error "CS0246: The type or namespace name 'EntityDataSource' could not be found (are you missing a using directive or an assembly reference?)"
I originally created the class as provided on this page:
http://forums.asp.net/t/1621469.aspx/1
No difference between the 2 (except the 1st link's version actually gets VWD to recognize the EntityDataSourceExtentions class name as something - color codes it in blue-green.)
I should be using .NET 4.0.
http://social.msdn.microsoft.com/forums/en-US/adodotnetentityframework/thread/d8a3ecd8-55dd-45ad-8175-d7ce912f46c2/
I get a compile error "CS0246: The type or namespace name 'EntityDataSource' could not be found (are you missing a using directive or an assembly reference?)"
I originally created the class as provided on this page:
http://forums.asp.net/t/1621469.aspx/1
No difference between the 2 (except the 1st link's version actually gets VWD to recognize the EntityDataSourceExtentions
I should be using .NET 4.0.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Found it myself; no time saved.
ASKER
Open in new window
This is the content of web.config, since that seems to play a role in adding different assemblies to the compile:
Open in new window
Now that I'm looking at web.config, I noted on a few websites, that there was a difference between "System.Data.Entity" and "System.Web.Entity". Should there be a .Web.Entity assembly added to make this work? Anyone happen to know its tag?