Hi,

I want to use Firebird with application blocks.
For this, I have to manually write following Firebird provider
information in Machine.Config.

<section name="firebirdsql.data.firebirdclient"
type="System.Data.Common.DbProviderConfigurationHandler, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

<add name="FirebirdClient Data Provider"
invariant="FirebirdSql.Data.FirebirdClient" description=".Net Framework
Data Provider for Firebird"
type="FirebirdSql.Data.FirebirdClient.FirebirdClientFactory,
FirebirdSql.Data.FirebirdClient, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=3750abcc3150b00c" />


Then, I use the following code.

//As you know, The following statement does following things.
//1.Find all .Net providers using Machine.Config.
//2.Get default database and connection string //3.Create a factory
using information from step1 & step2.
Database factory = DatabaseFactory.CreateDatabase(); 

Here are my questions.
1.I use xcopy deployment for my application. So How do I deploy
Machine.Config changes?
2.Is it safe to modify Machine.Config on end user's PC? Or Is there any
safeway to write into machine.config programatically?

Thanks
Vinay.



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to