Skip to content

Commit 056398b

Browse files
Update postgresql-server.md
1 parent 22c87df commit 056398b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/connecting-to-database/postgresql-server.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ public class CRUDModel<T> where T : class
14301430

14311431
**Insert Operation:**
14321432

1433-
To insert a new row, simply click the **Add** toolbar button. The new record edit form will be displayed as shown below. Upon clicking the **Update** toolbar button, record will inserted into the **Orders** table by calling the following **POST** method of an API.
1433+
To execute the insert operation, you will need to override the `insert` method of the `CustomAdaptor`. Then, integrate the following code snippet into the `CustomAdaptor` class. The below code snippet demonstrated how to handle the insertion of new records within the `insert` method of `CustomAdaptor`. Modify the logic within this method according to the requirements of your application.
14341434

14351435
{% tabs %}
14361436
{% highlight cs tabtitle="GridController.cs" %}
@@ -1518,7 +1518,7 @@ public IHttpActionResult Insert(CRUDModel<Orders> value)
15181518

15191519
**Update Operation:**
15201520

1521-
To edit a row, first select desired row and click the **Edit** toolbar button. The edit form will be displayed and proceed to modify any column value as per your requirement. Clicking the **Update** toolbar button will update the edit record in the **Orders** table by involving the following **Post** method of an API.
1521+
To execute the update operation, override the `update` method of the `CustomAdaptor`. Then, integrate the following code snippet into the `CustomAdaptor` class. The below code snippet demonstrated how to handle the updating of existing records within the `update` method of the `CustomAdaptor`. Modify the logic within this method according to the requirements of your application.
15221522

15231523
{% tabs %}
15241524
{% highlight cs tabtitle="GridController.cs" %}
@@ -1607,7 +1607,7 @@ public IHttpActionResult Update(CRUDModel<Orders> value)
16071607

16081608
**Delete Operation**
16091609

1610-
To delete a row, simply select the desired row and click the **Delete** toolbar button. This action will trigger a **DELETE** request to an API, containing the primary key value of the selected record. As a result corresponding record will be removed from the **Orders** table.
1610+
To perform the delete operation, you need to override the `remove` method of the `CustomAdaptor`. Below is the code snippet that you can add to `CustomAdaptor` class. The below code snippet demonstrated how to handle the deletion of existing records within the `remove` method of `CustomAdaptor`. Modify the logic within this method according to the requirements of your application.
16111611

16121612
{% tabs %}
16131613
{% highlight cs tabtitle="GridController.cs" %}
@@ -1692,7 +1692,7 @@ public IHttpActionResult Remove(CRUDModel<Orders> value)
16921692

16931693
**Batch Operation**
16941694

1695-
To perform batch operation, define the edit `Mode` as **Batch** and specify the `BatchUrl` property in the `DataManager`. Use the **Add** toolbar button to insert new row in batch editing mode. To edit a cell, double-click the desired cell and update the value as required. To delete a record, simply select the record and press the **Delete** toolbar button. Now, all CRUD operations will be executed in single request. Clicking the **Update** toolbar button will update the newly added, edited, or deleted records from the **Orders** table using a single API POST request.
1695+
To perform the batch operation, override the **batchRequest** method of the `CustomAdaptor` and add the following code in the `CustomAdaptor`. The below code snippet demonstrated how to handle the batch update request within the **batchRequest** method of `CustomAdaptor`. Modify the logic within this method according to the requirements of your application.
16961696

16971697
{% tabs %}
16981698
{% highlight cs tabtitle="GridController.cs" %}

0 commit comments

Comments
 (0)