XML Mapping for Complex Types
Posted: Tue 06 Aug 2019 14:40
Hi,
I've followed the documentation with regards to setting up support for multiple database providers (MS SQL and PostgreSQL) and setting up data contexts from the XML files. All works as expected as long as we have no complex return types for our methods (in our case table-valued functions). When any methods exist with a complex return type the application returns a InvalidOperationException with the message 'Could not find element type '[Namespace].tvf_[FunctionName]Result in model." when attempting to initialise the data context from the file.
Is this a know issue or perhaps there is something I'm missing with regards to the complex type declarations?
Any help would be appreciated.
I've followed the documentation with regards to setting up support for multiple database providers (MS SQL and PostgreSQL) and setting up data contexts from the XML files. All works as expected as long as we have no complex return types for our methods (in our case table-valued functions). When any methods exist with a complex return type the application returns a InvalidOperationException with the message 'Could not find element type '[Namespace].tvf_[FunctionName]Result in model." when attempting to initialise the data context from the file.
Is this a know issue or perhaps there is something I'm missing with regards to the complex type declarations?
Any help would be appreciated.