You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Define the SQL query to fetch all orders from the "Orders" table, ordered by OrderID.
87
+
// Define the SQL query to fetch all orders from the orders table, ordered by OrderID.
88
88
string query = "SELECT * FROM public.\"Orders\" ORDER BY \"OrderID\"";
89
89
90
90
// Establish a connection to the PostgreSQL database using the connection string.
@@ -275,7 +275,7 @@ public class GridController : ApiController
275
275
[HttpGet]
276
276
privateList<Orders> GetOrderData()
277
277
{
278
-
// Define the SQL query to fetch all orders from the "Orders" table, ordered by OrderID.
278
+
// Define the SQL query to fetch all orders from the orders table, ordered by OrderID.
279
279
stringquery="SELECT * FROM public.\"Orders\" ORDER BY \"OrderID\"";
280
280
281
281
// Establish a connection to the PostgreSQL database using the connection string.
@@ -620,7 +620,7 @@ To insert a new row, simply click the **Add** toolbar button. The new record edi
620
620
{%highlightcstabtitle="GridController.cs"%}
621
621
622
622
/// <summary>
623
-
/// Inserts a new order record into the "Orders" table in the PostgreSQL database.
623
+
/// Inserts a new order record into the orders table in the PostgreSQL database.
624
624
/// </summary>
625
625
/// <paramname="value">The CRUDModel containing the order details to be inserted.</param>
626
626
/// <returns>Returns an HTTP response indicating success or failure.</returns>
@@ -671,7 +671,7 @@ To edit a row, first select desired row and click the **Edit** toolbar button. T
671
671
{%highlightcstabtitle="GridController.cs"%}
672
672
673
673
/// <summary>
674
-
/// Updates an existing order record in the "Orders" table in the PostgreSQL database.
674
+
/// Updates an existing order record in the orders table in the PostgreSQL database.
675
675
/// </summary>
676
676
/// <paramname="value">The CRUDModel containing the updated order details.</param>
677
677
/// <returns>Returns an HTTP response indicating success or failure.</returns>
@@ -723,7 +723,7 @@ To delete a row, simply select the desired row and click the **Delete** toolbar
723
723
{%highlightcstabtitle="GridController.cs"%}
724
724
725
725
/// <summary>
726
-
/// Deletes an order record from the "Orders" table in the PostgreSQL database.
726
+
/// Deletes an order record from the orders table in the PostgreSQL database.
727
727
/// </summary>
728
728
/// <paramname="value">The CRUDModel containing the OrderID of the record to be deleted.</param>
729
729
/// <returns>Returns an HTTP response indicating success or failure.</returns>
@@ -741,7 +741,7 @@ public IHttpActionResult Remove(CRUDModel<Orders> value)
741
741
// Open the database connection.
742
742
Connection.Open();
743
743
744
-
// Define an SQL query to delete a record from the "Orders" table where OrderID matches.
744
+
// Define an SQL query to delete a record from the orders table where OrderID matches.
745
745
stringqueryStr="DELETE FROM \"Orders\" WHERE \"OrderID\"=@OrderID";
746
746
747
747
// Create a command object to execute the delete query.
@@ -770,7 +770,7 @@ To perform batch operation, define the edit `Mode` as **Batch** and specify the
770
770
{%highlightcstabtitle="GridController.cs"%}
771
771
772
772
/// <summary>
773
-
/// Performs batch update operations (insert, update, and delete) on the "Orders" table in a single transaction.
773
+
/// Performs batch update operations (insert, update, and delete) on the orders table in a single transaction.
774
774
/// </summary>
775
775
/// <paramname="value">The CRUDModel containing lists of added, changed, and deleted order records.</param>
776
776
/// <returns>Returns an HTTP response indicating the success or failure of the batch operation.</returns>
@@ -790,7 +790,7 @@ public IHttpActionResult BatchUpdate(CRUDModel<Orders> value)
790
790
// Process the list of updated records.
791
791
if (value.changed!=null&&value.changed.Count>0)
792
792
{
793
-
// Define an SQL query to update records in the "Orders" table.
793
+
// Define an SQL query to update records in the orders table.
794
794
stringupdateQuery="UPDATE \"Orders\" SET \"CustomerID\"=@CustomerID, \"Freight\"=@Freight, \"EmployeeID\"=@EmployeeID, \"ShipCity\"=@ShipCity WHERE \"OrderID\"=@OrderID";
795
795
796
796
// Create a command object to execute the update query within the transaction.
@@ -818,7 +818,7 @@ public IHttpActionResult BatchUpdate(CRUDModel<Orders> value)
818
818
// Process the list of newly added records.
819
819
if (value.added!=null&&value.added.Count>0)
820
820
{
821
-
// Define an SQL query to insert new records into the "Orders" table.
821
+
// Define an SQL query to insert new records into the orders table.
// Define the SQL query to fetch all orders from the "Orders" table, ordered by OrderID.
998
+
// Define the SQL query to fetch all orders from the orders table, ordered by OrderID.
999
999
stringquery="SELECT * FROM public.\"Orders\" ORDER BY \"OrderID\"";
1000
1000
1001
1001
// Establish a connection to the PostgreSQL database using the connection string.
@@ -1438,7 +1438,7 @@ To insert a new row, simply click the **Add** toolbar button. The new record edi
1438
1438
{%highlightcstabtitle="GridController.cs"%}
1439
1439
1440
1440
/// <summary>
1441
-
/// Inserts a new order record into the "Orders" table in the PostgreSQL database.
1441
+
/// Inserts a new order record into the orders table in the PostgreSQL database.
1442
1442
/// </summary>
1443
1443
/// <paramname="value">The CRUDModel containing the order details to be inserted.</param>
1444
1444
/// <returns>Returns an HTTP response indicating success or failure.</returns>
@@ -1526,7 +1526,7 @@ To edit a row, first select desired row and click the **Edit** toolbar button. T
1526
1526
{%highlightcstabtitle="GridController.cs"%}
1527
1527
1528
1528
/// <summary>
1529
-
/// Updates an existing order record in the "Orders" table in the PostgreSQL database.
1529
+
/// Updates an existing order record in the orders table in the PostgreSQL database.
1530
1530
/// </summary>
1531
1531
/// <paramname="value">The CRUDModel containing the updated order details.</param>
1532
1532
/// <returns>Returns an HTTP response indicating success or failure.</returns>
@@ -1615,7 +1615,7 @@ To delete a row, simply select the desired row and click the **Delete** toolbar
1615
1615
{%highlightcstabtitle="GridController.cs"%}
1616
1616
1617
1617
/// <summary>
1618
-
/// Deletes an order record from the "Orders" table in the PostgreSQL database.
1618
+
/// Deletes an order record from the orders table in the PostgreSQL database.
1619
1619
/// </summary>
1620
1620
/// <paramname="value">The CRUDModel containing the OrderID of the record to be deleted.</param>
1621
1621
/// <returns>Returns an HTTP response indicating success or failure.</returns>
@@ -1633,7 +1633,7 @@ public IHttpActionResult Remove(CRUDModel<Orders> value)
1633
1633
// Open the database connection.
1634
1634
Connection.Open();
1635
1635
1636
-
// Define an SQL query to delete a record from the "Orders" table where OrderID matches.
1636
+
// Define an SQL query to delete a record from the orders table where OrderID matches.
1637
1637
stringqueryStr="DELETE FROM \"Orders\" WHERE \"OrderID\"=@OrderID";
1638
1638
1639
1639
// Create a command object to execute the delete query.
@@ -1700,7 +1700,7 @@ To perform batch operation, define the edit `Mode` as **Batch** and specify the
1700
1700
{%highlightcstabtitle="GridController.cs"%}
1701
1701
1702
1702
/// <summary>
1703
-
/// Performs batch update operations (insert, update, and delete) on the "Orders" table in a single transaction.
1703
+
/// Performs batch update operations (insert, update, and delete) on the orders table in a single transaction.
1704
1704
/// </summary>
1705
1705
/// <paramname="value">The CRUDModel containing lists of added, changed, and deleted order records.</param>
1706
1706
/// <returns>Returns an HTTP response indicating the success or failure of the batch operation.</returns>
@@ -1720,7 +1720,7 @@ public IHttpActionResult BatchUpdate(CRUDModel<Orders> value)
1720
1720
// Process the list of updated records.
1721
1721
if (value.changed!=null&&value.changed.Count>0)
1722
1722
{
1723
-
// Define an SQL query to update records in the "Orders" table.
1723
+
// Define an SQL query to update records in the orders table.
1724
1724
stringupdateQuery="UPDATE \"Orders\" SET \"CustomerID\"=@CustomerID, \"Freight\"=@Freight, \"EmployeeID\"=@EmployeeID, \"ShipCity\"=@ShipCity WHERE \"OrderID\"=@OrderID";
1725
1725
1726
1726
// Create a command object to execute the update query within the transaction.
@@ -1748,7 +1748,7 @@ public IHttpActionResult BatchUpdate(CRUDModel<Orders> value)
1748
1748
// Process the list of newly added records.
1749
1749
if (value.added!=null&&value.added.Count>0)
1750
1750
{
1751
-
// Define an SQL query to insert new records into the "Orders" table.
1751
+
// Define an SQL query to insert new records into the orders table.
0 commit comments