Newb here sorry. I'm reading up Entity Framework Core, npgsql and PostgreSQL (new to all of these things!!) Can someone please very kindly explain or point me where to read: I am trying to create a brand new database using code.
From the things I have read, I am creating the DB using pgadmin or script directly. What I want to do is create a database all via code (so the user can install Postgresql and my website but not have to worry about any direct SQL commands with PostgreSQL).
Thank you!
Script-Migration
command to generate these for you. This lets you have more control over upgrades to existing dbs later (e.g. copying data into a new table before dropping a column). I use a version-controlled DB Create script for an EF Core project I have which I generate this way and it works well so far. – GPW