How do I pass JSON as a primitive PostgreSQL type to a function using Dapper?
问题 I have a PostgreSQL function that takes in a parameter of type json . Using Dapper, how do I execute a call that passes the object to the PostgreSQL function such that PostgreSQL recognizes the type as json instead of as text ? Example PostgreSQL Function that takes in json type CREATE OR REPLACE FUNCTION testfuncthattakesinjson(heroes json) RETURNS SETOF characters LANGUAGE 'sql' STABLE ROWS 100 AS $BODY$ SELECT c.* FROM characters c JOIN json_array_elements(heroes) j ON c.first_name = j->>