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 <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > >

