Closed NickDarvey closed 2 years ago
Custom composite types are not supported because in Npgsql 5 they removed dynamic mapping of types (via ExpandoObject
). Nowadays you need to define a class in the assembly for the composite yourself (i.e. this would have to become both an erasing and generative TP). I have no idea how to do that, but if anyone could show me (in a PR here) how to emit a real class and then return an instance of it in an erased method, I'd try do resurrect https://github.com/demetrixbio/FSharp.Data.Npgsql/pull/73.
this would have to become both an erasing and generative TP
This is beyond my skills, but thank you for describing why.
This might not be supported, in which case I'll close this. I thought it was worth opening anyway as it might help the next person who goes to try it.
Repro
Expected
I'm able to call
sql.AsyncExecute()
with anmy_proc_parameter array
.Actual
However, if we lose the user-defined type and pass built-in types like text, it works. (See details.)