Hi I am writing a T4 template to generate accessors for Sql server stored procedures. I have used a mixture of SMO and DeriveParameters method of CommandBuilder to get almost all of the information I need.
I am however unable to find a way of determining if and how many results sets a stored procedure returns.
In essence I am looking for a way to replicate Codesmiths SchemaExplorer CommandResults.Count property.
I don't wish to go down the road of parsing the test of the sproc.
Cheers in advance.