C-sharp WinFor project link database problem

just got a C-sharp Mini Program who wants to run it on his computer and import data. But I haven"t contacted EF, before and want to ask you how to match the database link of this project to your own SQL SERVER.

clipboard.png

the following is the code in App.config

< 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 >
< connectionStrings >

<add name="eng__.Properties.Settings.eng__ConnectionString" connectionString="Data Source=localhost;Initial Catalog=engPP;Integrated Security=True" providerName="System.Data.SqlClient" />

ider=System.Data.SqlClient;provider connection string=" Notes of data source= Tao SQLEXPRESS;initial catalog=engPP;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework "providerName=" System.Data.EntityClient "/ > < / connectionStrings >
< startup >

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />

< / 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 >

Mar.04,2021
Menu