abe545 / CodeOnlyStoredProcedures

A library for easily calling Stored Procedures in .NET using only code (no xml or gui).
MIT License
4 stars 3 forks source link

Allow order of hierarchical result sets to be specified #24

Closed abe545 closed 9 years ago

abe545 commented 9 years ago

The syntax should be something like:

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.