Hello,
Can someone please help me to find a way to put a variable name which will store the class name read from the database in the place of the class name "Role1" in the below code.
IEnumerable dataresult;
dataresult = connection.Query("sp_ReadGridData", new{ gridname ,id, usrname, LinkId }, commandType: CommandType.StoredProcedure);
return Request.CreateResponse(DataSourceLoader.Load(dataresult, loadOptions));
Thanks,
Hanusha

Sachin SinghRank #66 · 26.2K reputationPosted Oct 14, 2020, 8:34 AM EDT
Kiran MohantyRank #821 · 2.8K reputationPosted Oct 14, 2020, 1:12 AM EDT
AnuRank #5,208 · 307 reputationPosted Oct 14, 2020, 2:49 AM EDT
Kiran MohantyRank #821 · 2.8K reputationPosted Oct 14, 2020, 3:42 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Oct 14, 2020, 4:59 AM EDT
AnuRank #5,208 · 307 reputationPosted Oct 14, 2020, 5:22 AM EDT