I also need to connect Database dynamic. Here is my code, and it works fine.
                   DomSqlMapBuilder builder = new DomSqlMapBuilder();
                    _mapper = (SqlMapper)builder.Configure();
                    DataSource ds = (DataSource)_mapper.DataSource;
                    ds.ConnectionString = my_connect_string;
Hope this helps.

Reply via email to