QueryForDictionary info?

View: New views
2 Messages — Rating Filter:   Alert me  

QueryForDictionary info?

by sanjeev40084 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How would declare a key when you are using QueryForDictionary.

Return DataSources.EmployeeInfo.QueryForList<ParticipantDto>(Constants.GET_ID, null);    <---this is to get in list)

Return DataSources.EmployeeInfo.QueryForDictonary<……?             <---how would this be if you use it by QueryForDicitonary


Any suggestions?

Re: QueryForDictionary info?

by tech fan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 
return QueryForDictionary<int,ParticipantDto>("your_sql", null, "Id"); // this assumes you have a int property named Id, mapped to PK, ur objects are mapped to the values property of the returned IDictionary.

 
On 7/15/09, sanjeev40084 <sanjeev40084@...> wrote:

How would declare a key when you are using QueryForDictionary.

Return
DataSources.EmployeeInfo.QueryForList<ParticipantDto>(Constants.GET_ID,
null);    <---this is to get in list)

Return DataSources.EmployeeInfo.QueryForDictonary<……?             <---how
would this be if you use it by QueryForDicitonary


Any suggestions?
--
View this message in context: http://www.nabble.com/QueryForDictionary-info--tp24498220p24498220.html
Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-cs-unsubscribe@...
For additional commands, e-mail: user-cs-help@...