hi there,
been using ExecuteQuery with some success, i.e. where AccessRights is my dto and queryString contains "Exec sp_name param1,param2 etc"
var accessRights =
this.db.ExecuteQuery<AccessRights>(queryString, sqlParams.Values.ToArray()).AsQueryable();
Everything works perfect if what returns from the stored procedure can be mapped perfectly to the type (dto) that i pass in the generic ExecuteQuery
Problem is now i have a stored procedure that returns a non standard column name.
Basically my i hav my AccessRights class (dto) which contains, "userId", "accessRightId", "Description"
but the new stored procedure returns UserId, AccessRightId, "TemporaryDescription".
now i can't change it as other things depend on it... if I do
var accessRights =
this.db.ExecuteQuery<AccessRights>(queryString, sqlParams.Values.ToArray()).AsQueryable();
then i don't see "TemporaryDescription", which i suppose is logical as it doesn't exist
What i need to do is map temporaryDescription back to description.
Any body has any idea how to do this?