I have just started learning postgresql, i want to send a c# object as a parameter for the function(storedprocedure) of postgresql.
i.e. assume that i have a class named userdetails with fields like username,password,DOB etc,
how can i directly send this object to the function and retrieve each field from the object before inserting into the respective columns of the desired table?