postgres updatable view
Posted: Sun 29 Mar 2020 02:11
I am a new user of dotconnect and was curious if updatable views are supported?
I have not been able to get them to update to database using the datacontext.(gridview -> bindingsource -> datacontext.SubmitChanges) in a simple test project. The views do update to database as expected when tested in the GUI of DBeaver and DbForge as well as in SQL. I tried a simple view which should be automatic and a view with a couple joins. (For the more complex view I implemented a function using INSERT INTO ... ON CONFLICT and triggers using INSTEAD OF for the upserts and deletes.)
I have not been able to get them to update to database using the datacontext.(gridview -> bindingsource -> datacontext.SubmitChanges) in a simple test project. The views do update to database as expected when tested in the GUI of DBeaver and DbForge as well as in SQL. I tried a simple view which should be automatic and a view with a couple joins. (For the more complex view I implemented a function using INSERT INTO ... ON CONFLICT and triggers using INSTEAD OF for the upserts and deletes.)