skip to Main Content

Inserting data with parameters to PostgreSQL 16

I'm trying to insert data with parameters to PostgreSQL 16 in C#. I have the following code: using (var myConnection = new NpgsqlConnection(myConnectionString)) { myConnection.Open(); var insertAllData = $@" DO $$ DECLARE new_production_item_id INTEGER; BEGIN INSERT INTO public.production_items (my_data_type_id, created_by,…

VIEW QUESTION

Asp.net – Access different form element value

In an action, can I access different form element value? For example I have 3 forms, first form contains common element. <form id="commonSurname"> <input type="text" id="surname" name="surname" /> </form> <form id="person1" asp-action="getPerson1" method="post"> <input type="text" id="name1" name="name1" /> <input type="submit"…

VIEW QUESTION
Back To Top
Search