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
Copy file name to clipboardExpand all lines: blazor/data/adaptors.md
+9-18Lines changed: 9 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@ documentation: ug
13
13
14
14
The [SfDataManager](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Data.SfDataManager.html) component provides a unified approach for interacting with diverse data sources in Blazor applications. Each data source or remote service may define unique **request** and **response** formats. To manage these variations, the `SfDataManager` uses an **adaptor** mechanism that translates data operations into a format compatible with the target service.
15
15
16
-
17
16
***Local data sources**: An adaptor applies query operations such as **sorting**, **filtering**, and **paging** directly on an **in-memory collection**.
18
17
***Remote data sources**: An adaptor generates the required H**TTP requests** and processes the corresponding server **responses**.
19
18
@@ -30,8 +29,6 @@ The `SfDataManager` component provides several built-in adaptors for integrating
30
29
***GraphQLAdaptor** – Enables interaction with GraphQL services for queries and mutations.
31
30
***CustomAdaptor** – Allows custom implementations when built-in adaptors do not meet requirements.
32
31
33
-
N> `ODataAdaptor` is the default adaptor used by `SfDataManager`.
34
-
35
32
## UrlAdaptor
36
33
37
34
The **UrlAdaptor** is the base adaptor for remote data services. It converts query operations into **HTTP requests** and processes the corresponding server **responses**. This adaptor is suitable for endpoints that do not implement specialized protocols such as **OData** or **GraphQL**.
@@ -51,11 +48,11 @@ To configure the `UrlAdaptor`, set the [Adaptor](https://help.syncfusion.com/cr/
@@ -64,23 +61,18 @@ To configure the `UrlAdaptor`, set the [Adaptor](https://help.syncfusion.com/cr/
64
61
public class EmployeeData
65
62
{
66
63
public int EmployeeID { get; set; }
67
-
public string Name { get; set; }
68
-
public string Title { get; set; }
64
+
public string EmployeeName { get; set; }
65
+
public string Designation { get; set; }
69
66
}
70
-
71
67
}
72
68
73
69
```
74
70
75
-
N> Replace sample URL with the actual service endpoint URL.
76
-
77
71
The server response must include two properties:
78
72
79
73
***result** – A collection of entities.
80
74
***count** – The total number of records.
81
75
82
-
**Sample Response**
83
-
84
76
```
85
77
{
86
78
"result": [{...}, {...}, {...}],
@@ -127,8 +119,6 @@ To configure, set the [Adaptor](https://help.syncfusion.com/cr/blazor/Syncfusion
127
119
}
128
120
```
129
121
130
-
N> `ODataAdaptor` is the default adaptor used by `SfDataManager`.
131
-
132
122
## ODataV4 adaptor
133
123
134
124
The `ODataV4Adaptor` enables integration with services that implement the OData v4 protocol. It provides standardized communication between the [SfDataManager](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Data.SfDataManager.html) component and OData v4-compliant endpoints. This adaptor automatically generates query parameters for common data operations, reducing manual configuration.
@@ -241,7 +231,7 @@ The GraphQL response must return a JSON-formatted response with properties:
0 commit comments