Index out of range exception in FieldNameLookup.GetOrdinal when running SqlQuery EF
问题 The bounty expires in 3 days . Answers to this question are eligible for a +50 reputation bounty. Kirsten Greed wants to reward an existing answer : Reward this answer and draw attention to stackoverflow.com/questions/65753462/… We are getting eventually an IndexOutOfRange exception when running code like this: result.Data = dbOptima.Database.ExecuteStoredProcedure( task, StoredProcedureValues.PROC_GET_TASKS).ToList(); ,where ExecuteStoredProcedure does the following: public static