BLToolkit: Multiple resultsets?
问题 I haven't found a way to retrieve two lists of objects from an SP with two select statements. Is it possible with BLToolkit, or can only hierarchical data be fetched in such a manner? I'm trying to replace a dataset containing two unrelated tables. 回答1: It turns out it was really simple. :) Here's how you return multiple unrelated resultsets using BLToolkit. List<Apple> apples = new List<Apple>(); List<Orange> oranges = new List<Orange>(); MapResultSet[] sets = new MapResultSet[2]; sets[0] =