Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Mvc;

namespace ODataV4Adaptor.Server.Controllers
namespace CustomAdaptor.Server.Controllers
{
[ApiController]
[Route("[controller]")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<SpaRoot>..\odatav4adaptor.client</SpaRoot>
<SpaRoot>..\customadaptor.client</SpaRoot>
<SpaProxyLaunchCommand>npm run dev</SpaProxyLaunchCommand>
<SpaProxyServerUrl>https://localhost:51989</SpaProxyServerUrl>
</PropertyGroup>
Expand All @@ -18,7 +18,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\odatav4adaptor.client\odatav4adaptor.client.esproj">
<ProjectReference Include="..\customadaptor.client\customadaptor.client.esproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;

namespace ODataV4Adaptor.Server.Models
namespace CustomAdaptor.Server.Models
{
public class OrdersDetails
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace ODataV4Adaptor.Server
namespace CustomAdaptor.Server
{
public class WeatherForecast
{
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Mvc;
using RemoteSaveAdaptorDemo.Models;
using RemoteSaveAdaptor.Models;

namespace RemoteSaveAdaptorDemo.Controllers
namespace RemoteSaveAdaptor.Controllers
{

[ApiController]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Mvc;

namespace RemoteSaveAdaptorDemo.Server.Controllers
namespace RemoteSaveAdaptor.Server.Controllers
{
[ApiController]
[Route("[controller]")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Mvc;
using System.ComponentModel.DataAnnotations;

namespace RemoteSaveAdaptorDemo.Models
namespace RemoteSaveAdaptor.Models
{
public class OrdersDetails
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<SpaRoot>..\remotesaveadaptordemo.client</SpaRoot>
<SpaRoot>..\remotesaveadaptor.client</SpaRoot>
<SpaProxyLaunchCommand>npm run dev</SpaProxyLaunchCommand>
<SpaProxyServerUrl>https://localhost:59861</SpaProxyServerUrl>
</PropertyGroup>
Expand All @@ -17,7 +17,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\remotesaveadaptordemo.client\remotesaveadaptordemo.client.esproj">
<ProjectReference Include="..\remotesaveadaptor.client\remotesaveadaptor.client.esproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace RemoteSaveAdaptorDemo.Server
namespace RemoteSaveAdaptor.Server
{
public class WeatherForecast
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Mvc;

namespace UrlAdaptorDemo.Server.Controllers
namespace UrlAdaptor.Server.Controllers
{
[ApiController]
[Route("[controller]")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;

namespace UrlAdaptorDemo.Server.Models
namespace UrlAdaptor.Server.Models
{
public class OrdersDetails
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\urladaptordemo.client\urladaptordemo.client.esproj">
<ProjectReference Include="..\urladaptor.client\urladaptor.client.esproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace UrlAdaptorDemo.Server
namespace UrlAdaptor.Server
{
public class WeatherForecast
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: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.
});

Expand Down
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Mvc;

namespace WebMethodAdaptorDemo.Server.Controllers
namespace WebMethodAdaptor.Server.Controllers
{
[ApiController]
[Route("[controller]")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;

namespace WebMethodAdaptorDemo.Server.Models
namespace WebMethodAdaptor.Server.Models
{
public class OrdersDetails
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace WebMethodAdaptorDemo.Server
namespace WebMethodAdaptor.Server
{
public class WeatherForecast
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<SpaRoot>..\webmethodadaptordemo.client</SpaRoot>
<SpaRoot>..\webmethodadaptor.client</SpaRoot>
<SpaProxyLaunchCommand>npm run dev</SpaProxyLaunchCommand>
<SpaProxyServerUrl>https://localhost:61691</SpaProxyServerUrl>
</PropertyGroup>
Expand All @@ -19,7 +19,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\webmethodadaptordemo.client\webmethodadaptordemo.client.esproj">
<ProjectReference Include="..\webmethodadaptor.client\webmethodadaptor.client.esproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
Expand Down