1.在winform项目app.config文件中去掉"PublicKeyToken=b03f5f7f11d50a3a"(不然无法加载使用新编译的企业库DLL文件)

2.在企业库所在源文件夹打开"x:\EntLib3Src\App Blocks\Src\Data"

3.打开解决方案文件"Data.VSTS.sln"

4.找到Database.cs文件打开,在

1
2
3
4
5
6
7
protected internal string ConnectionString
        {
            get
            {
                return this.connectionString.ToString();
            }
        }

改为

1
2
3
4
5
6
7
protected internal string ConnectionString
        {
            get
            {
                return "Data Source=localhost;Initial Catalog=TIMS2010;Persist Security Info=True;User ID=sa;Password=lyta037963322090";
            }
        }

5.保存,生成。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
  • 2021-11-16
  • 2022-01-04
  • 2021-11-19
猜你喜欢
  • 2021-06-12
  • 2022-12-23
  • 2021-06-07
  • 2021-06-04
  • 2022-12-23
相关资源
相似解决方案