Do you have an example snippet of code - to give more context of what you are trying to achieve?
You should be able to call .Read() on the IRecordsReader (or implemented object rather) - then call GetValue (or whatever relevant "Get" method) on the first row.
Get Single record with IRecordsReader
Probably a simple question but how do I get a single record with IRecordsReader?
Hi froad,
Do you have an example snippet of code - to give more context of what you are trying to achieve?
You should be able to call .Read() on the IRecordsReader (or implemented object rather) - then call GetValue (or whatever relevant "Get" method) on the first row.
Cheers, Lee.
Yes it's possible, but I strongly suggest you go with a real ORM like LINQ to SQL, Entity Framework 4, NHibernate, etc.
As usual I was too fast asking on this forum :)
I didnt think I could use the simple Read() but so was the case:
I really have to start looking at LINQ! Just have to find the time..
Thx for your time :)
is working on a reply...