https://caetaworks.web.app/blog/crud-postgresql-csharp
- Create a database in PostgreSQL.
- Create the following tables using the provided queries:
CREATE TABLE models_a (
id bigserial NOT NULL PRIMARY KEY,
name text
);
CREATE TABLE models_b (
id bigserial NOT NULL PRIMARY KEY,
name text
);
CREATE TABLE rel_mod_a_mod_b (
id bigserial NOT NULL PRIMARY KEY,
id_model_a int,
id_model_b int,
CONSTRAINT fk_model_a FOREIGN KEY(id_model_a) REFERENCES models_a(id),
CONSTRAINT fk_model_b FOREIGN KEY(id_model_b) REFERENCES models_b(id)
);- Execute the repository's code
- At the very first you will get a error message if you don't have the database information configured

- Click Ok and continue
- Configure database information
- Go to "configure" option
- Search for your PostgreSQL database information
- Enter the information and press ok




