Page 1 of 1

DbProviderFactories code instead of config

Posted: Mon 30 Jan 2012 21:49
by chopswil
I'm wanting to make a common SQLite dll for various applications.
I don't want in all the client apps to have the config version of DbProviderFactories so they don't have to change the version of dotConnect for SQLite every time.
I want to change it in one spot.

Is there a way solely via code to do DbProviderFactories information or a better way through my dll to do this?

thanks

Posted: Fri 03 Feb 2012 16:37
by Pinturiccio
chopswil wrote:I don't want in all the client apps to have the config version of DbProviderFactories so they don't have to change the version of dotConnect for SQLite every time.
I want to change it in one spot.
If you want to make change only in one place and you want this change to be applied to all applications, you can register configuration information in the DbProviderFactories section of the machine.config file. You can do it manually or make a "Minimal installation" of dotConnet for SQLite on target machine. All the necessary information will be automatically written in the machine.config file during the "Minimal Installation".