The SqlMap.config file requires the dataSource node have a value. What
I do is set the connectionString to "..." and after my ISqlMapper
instance has been built, I let the application set the real value:

 sqlMapper.DataSource.ConnectionString = getConnectionString();

Does that help?

--- Per Magne Bjornerud <[EMAIL PROTECTED]> wrote:

> I think my main problem is understanding how I specify the datasource
> at
> run time. At the moment, I'm only using a hardcoded value in my
> sqlMap.config, like the tutorial, and don't know where to start
> looking
> to do it any other way.
> 
>  
> 
> Do you have any links to documentation about how I can dynamically
> set
> the datasource for my SqlMapper? 
> 
>  
> 
> I'll ponder it over the weekend. Thanks for the info so far :)
> 
>  
> 
> -- 
> 
> Per Magne
> 
>  
> 
>  
> 
> ________________________________
> 
> From: Gilles Bayon [mailto:[EMAIL PROTECTED] 
> Sent: Friday, July 28, 2006 15:41
> To: dev@ibatis.apache.org
> Subject: Re: Mapping objects from CSV files. (.Net)
> 
>  
> 
> You just have to use the CSV file as a database (forget that the
> DataSource is flat file, you are just using an ADO.NET OLEDB provider
> as
> Access).
> 
>  
> 
> set the connection sting
> 
> set the sql statement in your mapping file
> 
> set you parameter map, result map
> 
> and go
> 
> -- 
> Cheers,
> Gilles
> 
> Wish List <http://www.amazon.com/gp/registry/6JCP7AORB0L>   
> 
> 

Reply via email to