Java Mailing List Archive

http://www.junlu.com/

Home » user-cs.ibatis »

QueryForDictionary<K,V>, do I really have to creae a class for this?

tech fan

2010-05-06

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,
 
I have a table with just a integer as pk and a string as description. I need to retrieve all data into a IDictionary<int, string>(this table is human mantained), but I really don't want to creaet a class just for this simple task. But it seems QueryForDictionary converts the result to an object before I can access it. Is there any solution to this? I tried to use set the result class to System.Collections.Generic.Dictionary`2[System.UInt16,System.String] with no luck.
 
Thanks a have a nice day.
tc.
©2008 junlu.com - Jax Systems, LLC, U.S.A.