Skip to content

Commit dd8189d

Browse files
Merge pull request #4068 from syncfusion-content/949122-postgresql-hf
949122: Connecting to Database - PostgreSQL Server
2 parents e19124d + 81e0521 commit dd8189d

File tree

8 files changed

+1888
-4
lines changed

8 files changed

+1888
-4
lines changed

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/connecting-to-database/dapper.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,13 @@ To ensure proper script execution, register the Syncfusion Script Manager `EJS()
205205

206206
**Step 5:** Add the Syncfusion ASP.NET MVC Grid
207207

208-
Now, add the Syncfusion ASP.NET MVC Grid tag helper in `~/Views/Home/Index.cshtml` file.
208+
Now, add the Syncfusion ASP.NET MVC Grid tag helper in `~/Views/Home/Index.cshtml` file. This allows the Grid to be rendered and interact with data dynamically from a remote database.
209+
210+
* Create a `DataManager` instance specifying the URL of your API endpoint(https:localhost:xxxx/Grid/UrlDataSource) using the `url` property and set the `adaptor` UrlAdaptor.
211+
212+
* The `DataManager` offers multiple adaptor options to connect with remote database based on an API service. Below is an example of the `UrlAdaptor` configuration where an API service are set up to return the resulting data in the `result` and `count` format.
213+
214+
* The `UrlAdaptor` acts as the base adaptor for interacting with remote data service. Most of the built-in adaptors are derived from the `UrlAdaptor`.
209215

210216
{% tabs %}
211217
{% highlight cshtml tabtitle="Index.cshtml" %}

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/connecting-to-database/microsoft-sql-server.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,13 @@ To ensure proper script execution, register the Syncfusion Script Manager `EJS()
223223

224224
**Step 5:** Add the Syncfusion ASP.NET MVC Grid
225225

226-
Now, add the Syncfusion ASP.NET MVC Grid tag helper in `~/Views/Home/Index.cshtml` file.
226+
Now, add the Syncfusion ASP.NET MVC Grid tag helper in `~/Views/Home/Index.cshtml` file. This allows the Grid to be rendered and interact with data dynamically from a remote database.
227+
228+
* Create a `DataManager` instance specifying the URL of your API endpoint(https:localhost:xxxx/Grid/UrlDataSource) using the `url` property and set the `adaptor` UrlAdaptor.
229+
230+
* The `DataManager` offers multiple adaptor options to connect with remote database based on an API service. Below is an example of the `UrlAdaptor` configuration where an API service are set up to return the resulting data in the `result` and `count` format.
231+
232+
* The `UrlAdaptor` acts as the base adaptor for interacting with remote data service. Most of the built-in adaptors are derived from the `UrlAdaptor`.
227233

228234
{% tabs %}
229235
{% highlight cshtml tabtitle="Index.cshtml" %}

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/connecting-to-database/mysql-server.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,13 @@ To ensure proper script execution, register the Syncfusion Script Manager `EJS()
219219

220220
**Step 5:** Add the Syncfusion ASP.NET MVC Grid
221221

222-
Now, add the Syncfusion ASP.NET MVC Grid tag helper in `~/Views/Home/Index.cshtml` file.
222+
Now, add the Syncfusion ASP.NET MVC Grid tag helper in `~/Views/Home/Index.cshtml` file. This allows the Grid to be rendered and interact with data dynamically from a remote database.
223+
224+
* Create a `DataManager` instance specifying the URL of your API endpoint(https:localhost:xxxx/api/Grid) using the `url` property and set the `adaptor` UrlAdaptor.
225+
226+
* The `DataManager` offers multiple adaptor options to connect with remote database based on an API service. Below is an example of the `UrlAdaptor` configuration where an API service are set up to return the resulting data in the `result` and `count` format.
227+
228+
* The `UrlAdaptor` acts as the base adaptor for interacting with remote data service. Most of the built-in adaptors are derived from the `UrlAdaptor`.
223229

224230
{% tabs %}
225231
{% highlight cshtml tabtitle="Index.cshtml" %}

ej2-asp-core-mvc/grid/EJ2_ASP.MVC/connecting-to-database/postgresql-server.md

Lines changed: 1865 additions & 0 deletions
Large diffs are not rendered by default.
Loading
Loading
Loading

ej2-asp-mvc-toc.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,9 +1261,10 @@
12611261
</li>
12621262
<li>Connecting to Database
12631263
<ul>
1264-
<li><a href="/ej2-asp-mvc/grid/connecting-to-database/mysql-server">MySQL Server</a></li>
12651264
<li><a href="/ej2-asp-mvc/grid/connecting-to-database/dapper">Dapper</a></li>
1265+
<li><a href="/ej2-asp-mvc/grid/connecting-to-database/mysql-server">MySQL Server</a></li>
12661266
<li><a href="/ej2-asp-mvc/grid/connecting-to-database/entity-framework">Entity Framework</a></li>
1267+
<li><a href="/ej2-asp-mvc/grid/connecting-to-database">PostgreSQL Server</a></li>
12671268
</ul>
12681269
</li>
12691270
<li><a href="/ej2-asp-mvc/grid/data-annotation">Data Annotation</a></li>

0 commit comments

Comments
 (0)