Import execute the command in the data layer project directoryĭotnet ef dbcontext scaffold -force "Host=MY_DATABASE_ADDRESS Database=MY_DATABASE_NAME Username=MY_DATABSE_USER Password=MY_PASSWORD" Npgsql.EntityFrameworkCore.Delete the class files that correspond to the database tables.Reverse engineer the database back to the.PGPASSWORD=MY_PASSWORD psql -h MY_DATABASE_ADDRESS -U MY_DATABSE_USER -d MY_DATABASE_NAME -f MY_BACKUP_FILENAME.bak Import the modified backup file from the command prompt.Rith-click the server name and select Create database.Right-click the database and select Drop database.Replace the foreign key names with FK_ -> fk_. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |