本文介绍了无实体数据模型(EDMX)模板与Visual Studio 2010 SP1和放大器; ADO.NET实体框架4.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很大的问题,与Visual Studio 2010 SP1和放大器的模板; ADO.NET实体框架4.1

I'm having a lot of issues with the templates of Visual Studio 2010 SP1 & ADO.NET Entity Framework 4.1

我发现其他人有这些问题,问类似的问题,但我不认为他们给了足够的信息,使其解决-能。

I noticed that other people had these problems, and asked similar questions, but I don't think they gave enough information to make it solve-able.

问题: ADO.NET实体数据模型模板没有出现任何

截图:http://c0848462.cdn.cloudfiles.rackspacecloud.com/f067439f6e8f25d5fd36761fd1efc88a74fd765ff1.png

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "localhost", "http://localhost:36626", "{9BA46BAD-E736-4943-ACAD-EDE2E7A1A21E}"
    ProjectSection(WebsiteProperties) = preProject
        UseIISExpress = "true"
        TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
        Debug.AspNetCompiler.VirtualPath = "/localhost_36626"
        Debug.AspNetCompiler.PhysicalPath = "..\..\My Web Sites\Jantire\"
        Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_36626\"
        Debug.AspNetCompiler.Updateable = "true"
        Debug.AspNetCompiler.ForceOverwrite = "true"
        Debug.AspNetCompiler.FixedNames = "false"
        Debug.AspNetCompiler.Debug = "True"
        Release.AspNetCompiler.VirtualPath = "/localhost_36626"
        Release.AspNetCompiler.PhysicalPath = "..\..\My Web Sites\Jantire\"
        Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_36626\"
        Release.AspNetCompiler.Updateable = "true"
        Release.AspNetCompiler.ForceOverwrite = "true"
        Release.AspNetCompiler.FixedNames = "false"
        Release.AspNetCompiler.Debug = "False"
        SlnRelativePath = "..\..\My Web Sites\Jantire\"
    EndProjectSection
EndProject
Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Debug|Any CPU = Debug|Any CPU
    EndGlobalSection
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
        {9BA46BAD-E736-4943-ACAD-EDE2E7A1A21E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {9BA46BAD-E736-4943-ACAD-EDE2E7A1A21E}.Debug|Any CPU.Build.0 = Debug|Any CPU
    EndGlobalSection
    GlobalSection(SolutionProperties) = preSolution
        HideSolutionNode = FALSE
    EndGlobalSection
EndGlobal

相关系统规格:

Relevant System Specs:

  • 的Visual Studio 2010专业版SP1
  • 在ADO.NET实体数据模型4.1
  • 在ASP.NET MVC 3工具更新
  • 在Windows 7的64位SP1
  • 在WebMatrix中

我同时使用WebMatrix中和​​编码本的Visual Studio 2010专业版SP1

I'm coding this using both WebMatrix and Visual Studio 2010 Professional SP1

推荐答案

有关VS2010打开安装介质并浏览到:\ WCU \ EFTools。她你会发现两个文件:

Open the install media for VS2010 and browse to ":\WCU\EFTools".Her you will find two files:

ADONETEntityFrameworkTools_enu.msi

ADONETEntityFrameworkTools_enu.msi

ADONETEntityFrameworkTools_enu.cab

ADONETEntityFrameworkTools_enu.cab

  1. 复制这些文件到文件夹您的计算机上。
  2. 创建的文件夹中的日志文件 - 名为Log.txt文件比如
  3. 打开一个命令提示符(可能运行的命令提示符以管理员身份),并定位到文件夹与MSI和瓶盖的文件。
  4. 运行以下命令:

  1. Copy those files to a folder on your PC.
  2. Create a log file in the folder - for instance with the name "Log.txt"
  3. Open a cmd prompt (possibly run the cmd prompt as administrator) and navigate to thefolder with the msi and cap files.
  4. Run this command:

ADONETEntityFrameworkTools_enu.msi USING_EXUIH = 1 /日志Log.txt文件

ADONETEntityFrameworkTools_enu.msi USING_EXUIH=1 /log "Log.txt"

这将需要一段时间来安装,所以要耐心等待。

It will take a while to install so be patient.

安装,现在应该是在可见的控制面板 - >安装的程序。为Microsoft Visual Studio 2010的ADO.NET实体框架工具

The installation should now be visible in "Control Panel -> Installed Programs" as "Microsoft Visual Studio 2010 ADO.NET Entity Framework Tools".

加入新的项目到项目时,项目模板应该是在Visual Studio中可见。 (添加新的用品 - >数据 - > ADO.NET实体数据模型)。​​

The items template should be visible in Visual Studio when adding a new item to a project. (Add New Item->Data->ADO.NET Entity Data Model).

这里更多信息:http://msdn.microsoft.com/en-us/library/ee225240.aspx

这篇关于无实体数据模型(EDMX)模板与Visual Studio 2010 SP1和放大器; ADO.NET实体框架4.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 05:34