Model Context Protocol (MCP) finally gives AI models a way to access the business data needed to make them really useful at work. CData MCP Servers have the depth and performance to make sure AI has access to all of the answers.
Try them now for free →Connect to Adobe Commerce Data from Blazor Apps
Build ASP.NET Core Blazor C# apps that integrate with real-time Adobe Commerce data using standard SQL.
Blazor is a framework for developing modern, client-side web UIs using .NET technology. Instead of coding in JavaScript, developers can use the familiar C# language and .NET libraries to build app UIs.
The CData ADO.NET Provider for Adobe Commerce can be used with standard ADO.NET interfaces, such as LINQ and Entity Framework, to interact with live Adobe Commerce data. Since Blazor supports .NET Core, developers can use CData ADO.NET Providers in Blazor apps. In this article, we will guide you to build a simple Blazor app that talks to Adobe Commerce using standard SQL queries.
Install the CData ADO.NET Provider for Adobe Commerce
CData ADO.NET Providers allow users to access Adobe Commerce just like they would access SQL Server, using simple SQL queries.
Install the Adobe Commerce ADO.NET Data Provider from the CData website or from NuGet. Search NuGet for "Adobe Commerce ADO.NET Data Provider."

Create a Adobe Commerce-Connected Blazor App
Start by creating a Blazor project that references the CData ADO.NET Provider for Adobe Commerce
- Create a Blazor project on Visual Studio.
- From the Solution Explorer, right click Dependencies, then click Add Project Reference.
- In the Reference Manager, click the Browse button, and choose the .dll file of the installed ADO.NET Provider (e.g. System.Data.CData.Adobe Commerce.dll, typically located at C:\Program Files\CData\CData ADO.NET Provider for Adobe Commerce\lib etstandard2.0).


SELECT Adobe Commerce Data from the Blazor App
- Open the Index.razor file from the Project page.
- In a Adobe CommerceConnection object, set the connection string:
Adobe Commerce uses the OAuth 1 authentication standard. To connect to the Adobe Commerce REST API, obtain values for the OAuthClientId, OAuthClientSecret, and CallbackURL connection properties by registering an app with your Adobe Commerce system. See the "Getting Started" section in the help documentation for a guide to obtaining the OAuth values and connecting.
You will also need to provide the URL to your Adobe Commerce system. The URL depends on whether you are using the Adobe Commerce REST API as a customer or administrator.
Customer: To use Adobe Commerce as a customer, make sure you have created a customer account in the Adobe Commerce homepage. To do so, click Account -> Register. You can then set the URL connection property to the endpoint of your Adobe Commerce system.
Administrator: To access Adobe Commerce as an administrator, set CustomAdminPath instead. This value can be obtained in the Advanced settings in the Admin menu, which can be accessed by selecting System -> Configuration -> Advanced -> Admin -> Admin Base URL.
If the Use Custom Admin Path setting on this page is set to YES, the value is inside the Custom Admin Path text box; otherwise, set the CustomAdminPath connection property to the default value, which is "admin".
For example: OAuthClientId=MyConsumerKey;OAuthClientSecret=MyConsumerSecret;CallbackURL=http://127.0.0.1:33333;Url=https://myAdobe Commercehost.com;
- The code below creates a simple Blazor app for displaying Adobe Commerce data, using standard SQL to query Adobe Commerce just like SQL Server.
@page "/" @using System.Data; @using System.Data.CData.Adobe Commerce; <h1>Hello, world!</h1> Welcome to your Data app. <div class="row"> <div class="col-12"> @using (Adobe CommerceConnection connection = new Adobe CommerceConnection( "OAuthClientId=MyConsumerKey;OAuthClientSecret=MyConsumerSecret;CallbackURL=http://127.0.0.1:33333;Url=https://myAdobe Commercehost.com;")) { var sql = "SELECT Name, Price FROM Products"; var results = new DataTable(); Adobe CommerceDataAdapter dataAdapter = new Adobe CommerceDataAdapter(sql, connection); dataAdapter.Fill(results); <table class="table table-bordered"> <thead class="thead-light"> <tr> @foreach (DataColumn item in results.Rows[0].Table.Columns) { <th scope="col">@item.ColumnName</th> } </tr> </thead> <tbody> @foreach (DataRow row in results.Rows) { <tr> @foreach (var column in row.ItemArray) { <td>@column.ToString()</td> } </tr> } </tbody> </table> } </div> </div>
- Rebuild and run the project. The ADO.NET Provider renders Adobe Commerce data as an HTML table in the Blazor app.
At this point, you have a Adobe Commerce-connected Blazor app, capable of working with live Adobe Commerce data just like you would work with a SQL Server instance. Download a free, 30-day trial and start working with live Adobe Commerce data in your Blazor apps today.