title: How do I insert a C# object in postgres
body: <p>I have a legacy code which I'm trying to change. This legacy code stores and retrieves data from local storage. I'm trying to change it to save data, specifically c# classes, in a postgres database.
  The way the legacy code stores data is this:</p>
  <pre><code>FileSerializer.Serialize&lt;T&gt;(filename, instance);
  </code></pre>
  <p>I know how to INSERT INTO a serializable java object in postgres but I can't find a tutorial on how to do it with a c# object.</p>
  <p>Thanks for your time!</p>