From 85530895b0699abf1347bef063ef0f8edeeccf73 Mon Sep 17 00:00:00 2001 From: Sivaranjani Rajasekaran Date: Tue, 12 May 2026 18:48:42 +0530 Subject: [PATCH 1/2] Documentation(1026348): Update Samples --- .../Controllers/OrdersController.cs | 4 +-- .../Controllers/WeatherForecastController.cs | 2 +- ...ver.csproj => CustomAdaptor.Server.csproj} | 4 +-- ....user => CustomAdaptor.Server.csproj.user} | 0 ....Server.http => CustomAdaptor.Server.http} | 0 .../Models/OrdersDetails.cs | 2 +- .../CustomAdaptor.Server/Program.cs | 2 +- .../CustomAdaptor.Server/WeatherForecast.cs | 2 +- ...ent.esproj => customadaptor.client.esproj} | 0 .../obj/Debug/package.g.props | 26 ------------------- .../Controllers/OrdersController.cs | 4 +-- .../Controllers/WeatherForecastController.cs | 2 +- .../Models/OrdersDetails.cs | 2 +- ...csproj => RemoteSaveAdaptor.Server.csproj} | 4 +-- ...r => RemoteSaveAdaptor.Server.csproj.user} | 0 ...ver.http => RemoteSaveAdaptor.Server.http} | 0 .../WeatherForecast.cs | 2 +- ...esproj => remotesaveadaptor.client.esproj} | 0 .../Controllers/DataController.cs | 4 +-- .../Controllers/WeatherForecastController.cs | 2 +- .../UrlAdaptor.Server/Models/OrdersDetails.cs | 2 +- ...Server.csproj => UrlAdaptor.Server.csproj} | 2 +- ...roj.user => UrlAdaptor.Server.csproj.user} | 0 ...emo.Server.http => UrlAdaptor.Server.http} | 0 .../UrlAdaptor.Server/WeatherForecast.cs | 2 +- .../UrlAdaptor/UrlAdaptor.client/src/App.css | 1 - .../UrlAdaptor/UrlAdaptor.client/src/App.jsx | 8 +++--- ...client.esproj => urladaptor.client.esproj} | 0 .../Controllers/GridController.cs | 4 +-- .../Controllers/WeatherForecastController.cs | 2 +- .../Models/OrdersDetails.cs | 2 +- .../WeatherForecast.cs | 2 +- ....csproj => WebMethodAdaptor.Server.csproj} | 4 +-- ...er => WebMethodAdaptor.Server.csproj.user} | 0 ...rver.http => WebMethodAdaptor.Server.http} | 0 ....esproj => webmethodadaptor.client.esproj} | 0 ...odAdaptorDemo.sln => WebMethodAdaptor.sln} | 0 37 files changed, 32 insertions(+), 59 deletions(-) rename connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/{ODataV4Adaptor.Server.csproj => CustomAdaptor.Server.csproj} (84%) rename connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/{ODataV4Adaptor.Server.csproj.user => CustomAdaptor.Server.csproj.user} (100%) rename connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/{ODataV4Adaptor.Server.http => CustomAdaptor.Server.http} (100%) rename connecting-to-adaptors/CustomAdaptor/CustomAdaptor.client/{odatav4adaptor.client.esproj => customadaptor.client.esproj} (100%) delete mode 100644 connecting-to-adaptors/CustomAdaptor/CustomAdaptor.client/obj/Debug/package.g.props rename connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/{RemoteSaveAdaptorDemo.Server.csproj => RemoteSaveAdaptor.Server.csproj} (81%) rename connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/{RemoteSaveAdaptorDemo.Server.csproj.user => RemoteSaveAdaptor.Server.csproj.user} (100%) rename connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/{RemoteSaveAdaptorDemo.Server.http => RemoteSaveAdaptor.Server.http} (100%) rename connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.client/{remotesaveadaptordemo.client.esproj => remotesaveadaptor.client.esproj} (100%) rename connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/{UrlAdaptorDemo.Server.csproj => UrlAdaptor.Server.csproj} (91%) rename connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/{UrlAdaptorDemo.Server.csproj.user => UrlAdaptor.Server.csproj.user} (100%) rename connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/{UrlAdaptorDemo.Server.http => UrlAdaptor.Server.http} (100%) rename connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/{urladaptordemo.client.esproj => urladaptor.client.esproj} (100%) rename connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/{WebMethodAdaptorDemo.Server.csproj => WebMethodAdaptor.Server.csproj} (84%) rename connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/{WebMethodAdaptorDemo.Server.csproj.user => WebMethodAdaptor.Server.csproj.user} (100%) rename connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/{WebMethodAdaptorDemo.Server.http => WebMethodAdaptor.Server.http} (100%) rename connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.client/{webmethodadaptordemo.client.esproj => webmethodadaptor.client.esproj} (100%) rename connecting-to-adaptors/WebMethodAdaptor/{WebMethodAdaptorDemo.sln => WebMethodAdaptor.sln} (100%) diff --git a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Controllers/OrdersController.cs b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Controllers/OrdersController.cs index 6ca78d6..9f493ca 100644 --- a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Controllers/OrdersController.cs +++ b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Controllers/OrdersController.cs @@ -1,8 +1,8 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.OData.Query; -using ODataV4Adaptor.Server.Models; +using CustomAdaptor.Server.Models; -namespace ODataV4Adaptor.Server.Controllers +namespace CustomAdaptor.Server.Controllers { [Route("[controller]")] [ApiController] diff --git a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Controllers/WeatherForecastController.cs b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Controllers/WeatherForecastController.cs index 3931fb8..979b485 100644 --- a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Controllers/WeatherForecastController.cs +++ b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Controllers/WeatherForecastController.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Mvc; -namespace ODataV4Adaptor.Server.Controllers +namespace CustomAdaptor.Server.Controllers { [ApiController] [Route("[controller]")] diff --git a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/ODataV4Adaptor.Server.csproj b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/CustomAdaptor.Server.csproj similarity index 84% rename from connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/ODataV4Adaptor.Server.csproj rename to connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/CustomAdaptor.Server.csproj index 721ddee..cc0ddca 100644 --- a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/ODataV4Adaptor.Server.csproj +++ b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/CustomAdaptor.Server.csproj @@ -4,7 +4,7 @@ net9.0 enable enable - ..\odatav4adaptor.client + ..\customadaptor.client npm run dev https://localhost:51989 @@ -18,7 +18,7 @@ - + false diff --git a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/ODataV4Adaptor.Server.csproj.user b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/CustomAdaptor.Server.csproj.user similarity index 100% rename from connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/ODataV4Adaptor.Server.csproj.user rename to connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/CustomAdaptor.Server.csproj.user diff --git a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/ODataV4Adaptor.Server.http b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/CustomAdaptor.Server.http similarity index 100% rename from connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/ODataV4Adaptor.Server.http rename to connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/CustomAdaptor.Server.http diff --git a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Models/OrdersDetails.cs b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Models/OrdersDetails.cs index 1bb7b03..c7d8661 100644 --- a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Models/OrdersDetails.cs +++ b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Models/OrdersDetails.cs @@ -1,6 +1,6 @@ using System.ComponentModel.DataAnnotations; -namespace ODataV4Adaptor.Server.Models +namespace CustomAdaptor.Server.Models { public class OrdersDetails { diff --git a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Program.cs b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Program.cs index 595225b..6ec1ef3 100644 --- a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Program.cs +++ b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/Program.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.OData; using Microsoft.OData.ModelBuilder; -using ODataV4Adaptor.Server.Models; +using CustomAdaptor.Server.Models; var builder = WebApplication.CreateBuilder(args); diff --git a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/WeatherForecast.cs b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/WeatherForecast.cs index 1b27afe..974d232 100644 --- a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/WeatherForecast.cs +++ b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.Server/WeatherForecast.cs @@ -1,4 +1,4 @@ -namespace ODataV4Adaptor.Server +namespace CustomAdaptor.Server { public class WeatherForecast { diff --git a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.client/odatav4adaptor.client.esproj b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.client/customadaptor.client.esproj similarity index 100% rename from connecting-to-adaptors/CustomAdaptor/CustomAdaptor.client/odatav4adaptor.client.esproj rename to connecting-to-adaptors/CustomAdaptor/CustomAdaptor.client/customadaptor.client.esproj diff --git a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.client/obj/Debug/package.g.props b/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.client/obj/Debug/package.g.props deleted file mode 100644 index 4b4195a..0000000 --- a/connecting-to-adaptors/CustomAdaptor/CustomAdaptor.client/obj/Debug/package.g.props +++ /dev/null @@ -1,26 +0,0 @@ - - - - odatav4adaptor.client - true - 0.0.0 - module - vite - vite build - eslint . - vite preview - ^32.1.24 - ^32.1.25 - ^19.2.0 - ^19.2.0 - ^9.39.1 - ^19.2.5 - ^19.2.3 - ^5.1.1 - ^9.39.1 - ^7.0.1 - ^0.4.24 - ^16.5.0 - ^7.2.4 - - \ No newline at end of file diff --git a/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/Controllers/OrdersController.cs b/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/Controllers/OrdersController.cs index c77fa3c..7826b1b 100644 --- a/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/Controllers/OrdersController.cs +++ b/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/Controllers/OrdersController.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Mvc; -using RemoteSaveAdaptorDemo.Models; +using RemoteSaveAdaptor.Models; -namespace RemoteSaveAdaptorDemo.Controllers +namespace RemoteSaveAdaptor.Controllers { [ApiController] diff --git a/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/Controllers/WeatherForecastController.cs b/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/Controllers/WeatherForecastController.cs index 16f42f2..7fb5936 100644 --- a/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/Controllers/WeatherForecastController.cs +++ b/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/Controllers/WeatherForecastController.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Mvc; -namespace RemoteSaveAdaptorDemo.Server.Controllers +namespace RemoteSaveAdaptor.Server.Controllers { [ApiController] [Route("[controller]")] diff --git a/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/Models/OrdersDetails.cs b/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/Models/OrdersDetails.cs index 2014bed..5d0dd47 100644 --- a/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/Models/OrdersDetails.cs +++ b/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/Models/OrdersDetails.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Mvc; using System.ComponentModel.DataAnnotations; -namespace RemoteSaveAdaptorDemo.Models +namespace RemoteSaveAdaptor.Models { public class OrdersDetails { diff --git a/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/RemoteSaveAdaptorDemo.Server.csproj b/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/RemoteSaveAdaptor.Server.csproj similarity index 81% rename from connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/RemoteSaveAdaptorDemo.Server.csproj rename to connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/RemoteSaveAdaptor.Server.csproj index a73c2e1..70963ce 100644 --- a/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/RemoteSaveAdaptorDemo.Server.csproj +++ b/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/RemoteSaveAdaptor.Server.csproj @@ -4,7 +4,7 @@ net9.0 enable enable - ..\remotesaveadaptordemo.client + ..\remotesaveadaptor.client npm run dev https://localhost:59861 @@ -17,7 +17,7 @@ - + false diff --git a/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/RemoteSaveAdaptorDemo.Server.csproj.user b/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/RemoteSaveAdaptor.Server.csproj.user similarity index 100% rename from connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/RemoteSaveAdaptorDemo.Server.csproj.user rename to connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/RemoteSaveAdaptor.Server.csproj.user diff --git a/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/RemoteSaveAdaptorDemo.Server.http b/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/RemoteSaveAdaptor.Server.http similarity index 100% rename from connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/RemoteSaveAdaptorDemo.Server.http rename to connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/RemoteSaveAdaptor.Server.http diff --git a/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/WeatherForecast.cs b/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/WeatherForecast.cs index eacb6d6..4b6bcde 100644 --- a/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/WeatherForecast.cs +++ b/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.Server/WeatherForecast.cs @@ -1,4 +1,4 @@ -namespace RemoteSaveAdaptorDemo.Server +namespace RemoteSaveAdaptor.Server { public class WeatherForecast { diff --git a/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.client/remotesaveadaptordemo.client.esproj b/connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.client/remotesaveadaptor.client.esproj similarity index 100% rename from connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.client/remotesaveadaptordemo.client.esproj rename to connecting-to-adaptors/RemoteSaveAdaptor/RemoteSaveAdaptor.client/remotesaveadaptor.client.esproj diff --git a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/Controllers/DataController.cs b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/Controllers/DataController.cs index 50540c0..cf9f19f 100644 --- a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/Controllers/DataController.cs +++ b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/Controllers/DataController.cs @@ -2,9 +2,9 @@ using Microsoft.AspNetCore.Mvc; using Syncfusion.EJ2.Base; using System.Collections; -using UrlAdaptorDemo.Server.Models; +using UrlAdaptor.Server.Models; -namespace UrlAdaptorDemo.Server.Controllers +namespace UrlAdaptor.Server.Controllers { [Route("api/[controller]")] [ApiController] diff --git a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/Controllers/WeatherForecastController.cs b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/Controllers/WeatherForecastController.cs index c5080a4..0bd997e 100644 --- a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/Controllers/WeatherForecastController.cs +++ b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/Controllers/WeatherForecastController.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Mvc; -namespace UrlAdaptorDemo.Server.Controllers +namespace UrlAdaptor.Server.Controllers { [ApiController] [Route("[controller]")] diff --git a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/Models/OrdersDetails.cs b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/Models/OrdersDetails.cs index ddab639..28febe5 100644 --- a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/Models/OrdersDetails.cs +++ b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/Models/OrdersDetails.cs @@ -1,6 +1,6 @@ using System.ComponentModel.DataAnnotations; -namespace UrlAdaptorDemo.Server.Models +namespace UrlAdaptor.Server.Models { public class OrdersDetails { diff --git a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/UrlAdaptorDemo.Server.csproj b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/UrlAdaptor.Server.csproj similarity index 91% rename from connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/UrlAdaptorDemo.Server.csproj rename to connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/UrlAdaptor.Server.csproj index 442f334..bdb9b26 100644 --- a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/UrlAdaptorDemo.Server.csproj +++ b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/UrlAdaptor.Server.csproj @@ -19,7 +19,7 @@ - + false diff --git a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/UrlAdaptorDemo.Server.csproj.user b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/UrlAdaptor.Server.csproj.user similarity index 100% rename from connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/UrlAdaptorDemo.Server.csproj.user rename to connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/UrlAdaptor.Server.csproj.user diff --git a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/UrlAdaptorDemo.Server.http b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/UrlAdaptor.Server.http similarity index 100% rename from connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/UrlAdaptorDemo.Server.http rename to connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/UrlAdaptor.Server.http diff --git a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/WeatherForecast.cs b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/WeatherForecast.cs index 61d7321..770e2de 100644 --- a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/WeatherForecast.cs +++ b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.Server/WeatherForecast.cs @@ -1,4 +1,4 @@ -namespace UrlAdaptorDemo.Server +namespace UrlAdaptor.Server { public class WeatherForecast { diff --git a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/src/App.css b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/src/App.css index 19dcd66..45a4248 100644 --- a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/src/App.css +++ b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/src/App.css @@ -16,7 +16,6 @@ #root { max-width: 1280px; margin: 0 auto; - padding: 2rem; text-align: center; } diff --git a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/src/App.jsx b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/src/App.jsx index b71e8d5..6abc381 100644 --- a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/src/App.jsx +++ b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/src/App.jsx @@ -18,10 +18,10 @@ function App() { // Configure DataManager with UrlAdaptor. const data = new DataManager({ - url: 'https://localhost:7007/api/data', // Replace 7007 with the backend port. - insertUrl: 'https://localhost:7007/api/data/Insert', - updateUrl: 'https://localhost:7007/api/data/Update', - removeUrl: 'https://localhost:7007/api/data/Remove', + url: 'http://localhost:5123/api/data', // Replace 7007 with the backend port. + insertUrl: 'http://localhost:5123/api/data/Insert', + updateUrl: 'http://localhost:5123/api/data/Update', + removeUrl: 'http://localhost:5123/api/data/Remove', adaptor: new UrlAdaptor() // Specify UrlAdaptor for custom REST API. }); diff --git a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/urladaptordemo.client.esproj b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/urladaptor.client.esproj similarity index 100% rename from connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/urladaptordemo.client.esproj rename to connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/urladaptor.client.esproj diff --git a/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/Controllers/GridController.cs b/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/Controllers/GridController.cs index 16c50be..9359d44 100644 --- a/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/Controllers/GridController.cs +++ b/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/Controllers/GridController.cs @@ -1,8 +1,8 @@ using Microsoft.AspNetCore.Mvc; using Syncfusion.EJ2.Base; -using WebMethodAdaptorDemo.Server.Models; +using WebMethodAdaptor.Server.Models; -namespace WebMethodAdaptorDemo.Controllers +namespace WebMethodAdaptor.Controllers { [Route("api/[controller]")] [ApiController] diff --git a/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/Controllers/WeatherForecastController.cs b/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/Controllers/WeatherForecastController.cs index 0f0c3bc..d182ecc 100644 --- a/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/Controllers/WeatherForecastController.cs +++ b/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/Controllers/WeatherForecastController.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Mvc; -namespace WebMethodAdaptorDemo.Server.Controllers +namespace WebMethodAdaptor.Server.Controllers { [ApiController] [Route("[controller]")] diff --git a/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/Models/OrdersDetails.cs b/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/Models/OrdersDetails.cs index a9a27d7..2e518f8 100644 --- a/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/Models/OrdersDetails.cs +++ b/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/Models/OrdersDetails.cs @@ -1,6 +1,6 @@ using System.ComponentModel.DataAnnotations; -namespace WebMethodAdaptorDemo.Server.Models +namespace WebMethodAdaptor.Server.Models { public class OrdersDetails { diff --git a/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WeatherForecast.cs b/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WeatherForecast.cs index 0d88f44..9785946 100644 --- a/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WeatherForecast.cs +++ b/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WeatherForecast.cs @@ -1,4 +1,4 @@ -namespace WebMethodAdaptorDemo.Server +namespace WebMethodAdaptor.Server { public class WeatherForecast { diff --git a/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WebMethodAdaptorDemo.Server.csproj b/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WebMethodAdaptor.Server.csproj similarity index 84% rename from connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WebMethodAdaptorDemo.Server.csproj rename to connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WebMethodAdaptor.Server.csproj index 19ac622..cc114b0 100644 --- a/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WebMethodAdaptorDemo.Server.csproj +++ b/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WebMethodAdaptor.Server.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - ..\webmethodadaptordemo.client + ..\webmethodadaptor.client npm run dev https://localhost:61691 @@ -19,7 +19,7 @@ - + false diff --git a/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WebMethodAdaptorDemo.Server.csproj.user b/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WebMethodAdaptor.Server.csproj.user similarity index 100% rename from connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WebMethodAdaptorDemo.Server.csproj.user rename to connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WebMethodAdaptor.Server.csproj.user diff --git a/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WebMethodAdaptorDemo.Server.http b/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WebMethodAdaptor.Server.http similarity index 100% rename from connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WebMethodAdaptorDemo.Server.http rename to connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.Server/WebMethodAdaptor.Server.http diff --git a/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.client/webmethodadaptordemo.client.esproj b/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.client/webmethodadaptor.client.esproj similarity index 100% rename from connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.client/webmethodadaptordemo.client.esproj rename to connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.client/webmethodadaptor.client.esproj diff --git a/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptorDemo.sln b/connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.sln similarity index 100% rename from connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptorDemo.sln rename to connecting-to-adaptors/WebMethodAdaptor/WebMethodAdaptor.sln From 90f534374d4b593b5698654e8bb97fc2df7988c0 Mon Sep 17 00:00:00 2001 From: Sivaranjani Rajasekaran Date: Tue, 12 May 2026 19:03:34 +0530 Subject: [PATCH 2/2] update the sample --- .../UrlAdaptor/UrlAdaptor.client/src/App.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/src/App.jsx b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/src/App.jsx index 6abc381..44136aa 100644 --- a/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/src/App.jsx +++ b/connecting-to-adaptors/UrlAdaptor/UrlAdaptor.client/src/App.jsx @@ -18,10 +18,10 @@ function App() { // Configure DataManager with UrlAdaptor. const data = new DataManager({ - url: 'http://localhost:5123/api/data', // Replace 7007 with the backend port. - insertUrl: 'http://localhost:5123/api/data/Insert', - updateUrl: 'http://localhost:5123/api/data/Update', - removeUrl: 'http://localhost:5123/api/data/Remove', + url: 'http://localhost:7007/api/data', // Replace 7007 with the backend port. + insertUrl: 'http://localhost:7007/api/data/Insert', + updateUrl: 'http://localhost:7007/api/data/Update', + removeUrl: 'http://localhost:7007/api/data/Remove', adaptor: new UrlAdaptor() // Specify UrlAdaptor for custom REST API. });