Skip to content

[Feature]: Support for table-valued parameters #2678

@niphlod

Description

@niphlod

Hello all,
would you be interested in supporting table-valued parameters in stored procedures ?

Right now only "default" IN parameters are supported, and if the stored procedure definition has a TVP parameter, DAB can't build the proper type.

I traced the culprit till Azure.DataApiBuilder.Core.Services.FillSchemaForStoredProcedureAsync, which ends up (at least for SQL source) to SqlToCLRType erroring out.

I have some code that can build a DataTable definition out of a tvp dinamically, but I'm unsure on how to proceed further as ParameterDefinition points to a Type which ... gets then used to build the interface ?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions