Passing pgsql table object as parameter using c# .net core?
HI in pgsql we can pass table row as parameter , I want to know how we can use it in .net core?
like below function takes some parameters and give its functionality
-CREATE OR REPLACE FUNCTION public."GetUserName"(u "User_", pmed "Pharmacy", puser "Pharmacy", m "Medication")
RETURNS character varying
LANGUAGE plpgsql
AS $function$
BEGIN
return (
case when u."Id" > 0 then
(
u."FirstName" || ' ' ||coalesce(u."LastName", '')
|| (
case when u."Pharmacy_Id" > 0 then
(case when puser."PharmacyId" > 0 then ' (' || puser."PharmacyName" || ') ' else '' end)
else '' end
)
)
when coalesce (u."Id" , 0) = 0 then pmed."PharmacyName" else '' end
);
END
$function$
;
I want to call this function using .net core ef core without dynamic queries using DbFunctions appraoch