Thanks for the reply, The example in the link only seem to give me a normal
datareader, though. Is there some way I can plug this into iBatis to create my objects? I’m not yet thoroughly familiar with iBatis, and
I’m currently specifying the datasource only in the “sqlMap.config”
file. I assume this won’t work if I want to load data from CSV files during
run-time, since I don’t have the datasource yet. However, is there some way I can specify a “parameterMap”
in the xml file, and then use iBatis to apply that mapping also to an sqlreader? I looked at the SqlMapper now, and see there is a
DataSource property. Is this what I am supposed to use? I’ll look more
into that part, but If you have any links to more information about how I can
use other datasources for the mapper, I’d be very happy. -- Per Magne From:
Gilles Bayon [mailto:[EMAIL PROTECTED] A CSV can be see as a relationnal database on
which you do sql statement. You
can easily access data in CSV files (Comma-Separated Values) using ADO.NET components. Note:
"HDR=Yes" indicates that the first row contains columnnames, not data
(source: connectionstrings.com). "SELECT
* FROM data.txt" See
more infos in |
- Mapping objects from CSV files. (.Net) Per Magne Bjornerud
- Re: Mapping objects from CSV files. (.Net) Gilles Bayon
- RE: Mapping objects from CSV files. (.Net) Per Magne Bjornerud
- Re: Mapping objects from CSV files. (.Net) Gilles Bayon
- RE: Mapping objects from CSV files. (.Net) Per Magne Bjornerud
- Re: Mapping objects from CSV files. (.Net) Chris Weisel
- RE: Mapping objects from CSV files. (.Net) Ron Grabowski
- RE: Mapping objects from CSV files. (.Net) Per Magne Bjornerud