var res = StoredProcedure.Create("foo")
.WithResults<T1, T2, T3, T4>()
.AsHierarchical<T3>()
.Execute(connection);
When multiple result sets are specified, the RowFactory should not create a HierarchicalRowFactory. That way, the AsHierarchical call can do the work of generating the hierarchy.
The syntax should be something like:
When multiple result sets are specified, the RowFactory should not create a HierarchicalRowFactory. That way, the AsHierarchical call can do the work of generating the hierarchy.