Dapper giving “Invalid attempt to call FieldCount when reader is closed.” when trying to use “QueryMultiple”
问题 I have a wrapper method for Dapper.NET's QueryMultiple method. It successfully gets data from a Stored Procedure, which has 3 queries, all of them are SELECT queries. But after getting the data, I cannot use Read or ReadAsync to assign data to class variables. I'm attaching my code below. public Tuple<IEnumerable<T1>, IEnumerable<T2>, IEnumerable<T3>> QueryMultiple<T1, T2, T3>() { try { var data = MultiQuery("[App].[USP_GetAllCategories]"); var category = data.Read<T1>(); var subcategory =