Thank you for your reply, but i need to specify my datasource before the call to configure method. I will pass an XmlDocument object as a parameter of Configure as Mickael explain.
Teddy Forfun Chou wrote: > > 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. > > -- View this message in context: http://www.nabble.com/Dynamic-Datasource-with-DataAccess-tp25119303p25129639.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org