LINQ连接字符串,如何在运行时进行修改 [英] LINQ connection string, How to modify at runtime
本文介绍了LINQ连接字符串,如何在运行时进行修改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
新手在这里...
我创建了一个控制台应用程序,它使用LINQ to SQL连接到最多3个不同系统上的SQL 2000数据库...
我希望更改为设置(连接字符串)",具体取决于正在访问的计算机(通过.ini文件确定)
有人可以建议如何实现吗? (非常紧急!)
问候
Graham
Hi
Newbie here...
I have created a console application which uses LINQ to SQL to connect to an SQL 2000 database on up to 3 different systems...
I wish to change to the "Settings (connection string)" depending on which machine is being accessed ( determined via .ini file)
Can someone please advise how to achieve this? (fairly urgent!)
Regards
Graham
推荐答案
^ ]只是执行此操作的许多方法之一.
Here[^] is just one of many ways to do this.
这篇关于LINQ连接字符串,如何在运行时进行修改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文