How to send StandardInput to the Password Prompt when creating a PostgreSQL database from C#
I have an application, running in .Net Framework 4.7.2 that I need to connect to a postgresql database. The connection works when the database exists, but if it doesn’t, I want to create the database. In order to do that from the application, I planned on using ProcessStartInfo and sending the command: