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

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -