In VS2010, I cannot find the template ADO.NET Entity Data Model from the Data section. I was doing:
- create a silverlight(version 4th) project with a WebSite
- right click the web project, Add -> New Item -> Data 开发者_如何转开发Section(actually, I tried every one)
But I cannot find it!! It's weird!
Then,
- I tried to reset my VS template, it didn't work
- Tried to re-install VS2010, and I got the "Successful" message. also I am sure that the ADO.NET Entity Framework has been installed appropriately.
So, is there anything else I can do? can I just install this template to VS?
i believe you can add a ADO.NET Entity Data Model in a windows class library and reference that library where it is required. but you cannot add the data model in a silverlight library.
Update:
in that case, i presuming the website is atleast targeting version 3.5 of the framework
for vs2010, you can check that the required template is available at the locations below
'%programfiles%\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Data\1033\AdoNetEntityDataModelCSharp.zip'
'%programfiles%\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\VisualBasic\Data\1033\AdoNetEntityDataModelVB.zip'
'%programfiles%\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\Web\CSharp\1033\AdoNetEntityDataModelCSharp_ASPNET.zip'
'%programfiles%\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\Web\VisualBasic\1033\AdoNetEntityDataModelVB_ASPNET.zip'
(in a x64 environment use 'Program Files (x86)' for %programfiles%)
hope that helps.
-ryan
精彩评论