C# 我如何连接到我的应用程序正在使用的数据库并对其进行探索?

C# 我如何连接到我的应用程序正在使用的数据库并对其进行探索?,c#,entity-framework,console-application,entity-framework-6,C#,Entity Framework,Console Application,Entity Framework 6,我已经创建了一个简单的应用程序,如MSDN上所述,这是一个简单的代码优先工作流示例,它工作正常,它存储数据并显示存储的数据。但我不知道如何访问它正在使用的数据库?我如何连接到该数据库,以探索输入的数据 注:我将EF6与VS 2013 ultimate一起使用 App.config是: 检查配置文件中的连接字符串 现在您已经添加了配置,请尝试: 本地\mssqllocaldb或\mssqllocaldb 查看->SQL Server对象资源管理器 在那里你可以找到你的数据库 那篇文章有一个章节叫做

我已经创建了一个简单的应用程序,如MSDN上所述,这是一个简单的代码优先工作流示例,它工作正常,它存储数据并显示存储的数据。但我不知道如何访问它正在使用的数据库?我如何连接到该数据库,以探索输入的数据

注:我将EF6与VS 2013 ultimate一起使用

App.config是:


检查配置文件中的连接字符串

现在您已经添加了配置,请尝试:

本地\mssqllocaldb或\mssqllocaldb 查看->SQL Server对象资源管理器
在那里你可以找到你的数据库

那篇文章有一个章节叫做“我的数据在哪里?”?这向您展示了如何查看itI,它尝试了本地\v11.0和。\SQLEXPRESS,并且它说这两个都没有安装在计算机上。那么我如何知道安装了哪一个呢@在App.config中找不到JonesyConnection字符串。添加有问题的App.config可能会帮助您回答这个问题@用户3657925
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
  </startup>
  <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
      <parameters>
        <parameter value="mssqllocaldb" />
      </parameters>
    </defaultConnectionFactory>
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    </providers>
  </entityFramework>
</configuration>