Skip to content

Commit 2454abc

Browse files
committed
More Edits
1 parent 7c23fd2 commit 2454abc

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- default badges end -->
33
# Blazor Grid - Bind the Component to Data Using XPO
44

5-
This example uses [DevExpress eXpress Persistent Objects (XPO) ORM](https://docs.devexpress.com/XPO/1998/express-persistent-objects) to bind the Blazor `DxGrid` to a database: a Web API backend retrieves XPO persistent objects and passes data to a Blazor application.
5+
This example uses the [DevExpress eXpress Persistent Objects (XPO) ORM](https://docs.devexpress.com/XPO/1998/express-persistent-objects) to bind the DevExpress Blazor Grid (`DxGrid`) to a database: a Web API backend retrieves XPO persistent objects and passes data to a Blazor application.
66

77
## Implementation Details
88

@@ -23,7 +23,7 @@ This example uses [DevExpress eXpress Persistent Objects (XPO) ORM](https://docs
2323
builder.Services.AddXpoDefaultUnitOfWork();
2424
```
2525

26-
1. In the [BindToDataUsingXPO.WebAPI\Data](CS/DxGrid.BindToDataUsingXPO.WebAPI/Data) folder, inherit persistent objects (such as [Orders](BindToDataUsingXPO.WebAPI\Data\Orders.cs)) from the `XPBaseObject` to expose properties that you want to map to database columns.
26+
1. In the [BindToDataUsingXPO.WebAPI\Data](CS/DxGrid.BindToDataUsingXPO.WebAPI/Data) folder, inherit persistent objects (such as [Orders](BindToDataUsingXPO.WebAPI\Data\Orders.cs)) from the `XPBaseObject` to expose properties that you wish to map to database columns.
2727

2828
```cs
2929
public class Orders(Session session) : XPBaseObject(session) {
@@ -41,7 +41,7 @@ This example uses [DevExpress eXpress Persistent Objects (XPO) ORM](https://docs
4141

4242
### Retrieve Data Using a Web API Controller
4343

44-
Create an API controller that queries the XPO `UnitOfWork`, shapes the result, and uses the `DevExtreme.AspNet.Data` library [DataSourceLoader](https://devexpress.github.io/DevExtreme.AspNet.Data/net/api/DevExtreme.AspNet.Data.DataSourceLoader.html) to apply paging, sorting, and filtering based on the grid [load options](CS/DxGrid.BindToDataUsingXPO.WebAPI/Controllers):
44+
Create an API controller that queries XPO's `UnitOfWork`, shapes the result, and uses the `DevExtreme.AspNet.Data` library [DataSourceLoader](https://devexpress.github.io/DevExtreme.AspNet.Data/net/api/DevExtreme.AspNet.Data.DataSourceLoader.html) to apply paging, sorting, and filtering based on the grid [load options](CS/DxGrid.BindToDataUsingXPO.WebAPI/Controllers):
4545

4646
```cs
4747
[HttpGet]
@@ -70,7 +70,7 @@ public ActionResult Get(DataSourceLoadOptions loadOptions) {
7070

7171
### Bind a Blazor Grid to Data
7272

73-
1. In a Blazor client application ([DxGrid.BindToDataUsingXPO](CS\DxGrid.BindToDataUsingXPO\DxGrid.BindToDataUsingXPO.csproj)), add a `DxGrid` component with multiple [DxGridDataColumn](https://docs.devexpress.com/Blazor/DevExpress.Blazor.DxGridDataColumn) objects:
73+
1. In your Blazor client application ([DxGrid.BindToDataUsingXPO](CS\DxGrid.BindToDataUsingXPO\DxGrid.BindToDataUsingXPO.csproj)), add a `DxGrid` component with multiple [DxGridDataColumn](https://docs.devexpress.com/Blazor/DevExpress.Blazor.DxGridDataColumn) objects:
7474

7575
```razor
7676
<DxGrid>
@@ -105,7 +105,7 @@ public ActionResult Get(DataSourceLoadOptions loadOptions) {
105105
}
106106
```
107107
108-
The grid sends requests to the Web API that delegates data shaping to XPO query provider. The Grid loads data required to display on screen instead of the entire dataset.
108+
The grid sends requests to a Web API that delegates data shaping to the XPO query provider. The Grid loads data necessary for screen display (instead of the entire dataset).
109109
110110
111111
## Files to Review

0 commit comments

Comments
 (0)