MSDN
에 here으로 설명 된 간단한 응용 프로그램을 만들었습니다. 이것은 간단한 Code First
워크 플로 예제입니다.이 예제는 제대로 작동하며 데이터를 저장하고 저장된 데이터도 표시합니다. 그러나 나는 그것을 사용하고있는 데이터베이스에 어떻게 접근 할 수 있을지 모른다. 입력 한 데이터를 탐색하려면 해당 데이터베이스에 어떻게 연결할 수 있습니까?내 응용 프로그램이 사용하고 탐색하는 데이터베이스에 어떻게 연결할 수 있습니까?
참고 : 나는
App.config
궁극적 인 VS 2013와 EF6을 사용하고 있습니다 것은 :
<?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>
'내 데이터는 어디에서 왔습니까?'라는 내용의 섹션이 있습니다. – Jonesopolis
'(로컬) \ v11.0'과'. \ SQLEXPRESS'를 모두 시도했으며 두 가지 모두 기계에 설치하십시오. 그렇다면 어느 것이 설치되어 있는지 어떻게 알 수 있습니까? @Jonesy – user3461957