c# - Change connection string petapoco -
i have 2 separate databases i'm wanting merge shared 1 site. when logs in have check see if user exists in database one, if aren't check database 2, if in database want switch default connection string database 2. petapoco database has auto-generated code says not change. possible?
the petapoco database object has 4 constructors:
public database(idbconnection connection) public database(string connectionstring, string providername) public database(string connectionstring, dbproviderfactory provider) public database(string connectionstringname)
use database(string connectionstring, string providername)
if want provide connection string.
Comments
Post a Comment