Skip to content

949122: Connecting to Database - PostgreSQL Server #4068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 17, 2025
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
Expand Up @@ -205,7 +205,13 @@ To ensure proper script execution, register the Syncfusion Script Manager `EJS()

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

Now, add the Syncfusion ASP.NET MVC Grid tag helper in `~/Views/Home/Index.cshtml` file.
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.

* 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.

* 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.

* The `UrlAdaptor` acts as the base adaptor for interacting with remote data service. Most of the built-in adaptors are derived from the `UrlAdaptor`.

{% tabs %}
{% highlight cshtml tabtitle="Index.cshtml" %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,13 @@ To ensure proper script execution, register the Syncfusion Script Manager `EJS()

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

Now, add the Syncfusion ASP.NET MVC Grid tag helper in `~/Views/Home/Index.cshtml` file.
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.

* 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.

* 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.

* The `UrlAdaptor` acts as the base adaptor for interacting with remote data service. Most of the built-in adaptors are derived from the `UrlAdaptor`.

{% tabs %}
{% highlight cshtml tabtitle="Index.cshtml" %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,13 @@ To ensure proper script execution, register the Syncfusion Script Manager `EJS()

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

Now, add the Syncfusion ASP.NET MVC Grid tag helper in `~/Views/Home/Index.cshtml` file.
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.

* 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.

* 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.

* The `UrlAdaptor` acts as the base adaptor for interacting with remote data service. Most of the built-in adaptors are derived from the `UrlAdaptor`.

{% tabs %}
{% highlight cshtml tabtitle="Index.cshtml" %}
Expand Down
1,865 changes: 1,865 additions & 0 deletions ej2-asp-core-mvc/grid/EJ2_ASP.MVC/connecting-to-database/postgresql-server.md

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion ej2-asp-mvc-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -1261,9 +1261,10 @@
</li>
<li>Connecting to Database
<ul>
<li><a href="/ej2-asp-mvc/grid/connecting-to-database/mysql-server">MySQL Server</a></li>
<li><a href="/ej2-asp-mvc/grid/connecting-to-database/dapper">Dapper</a></li>
<li><a href="/ej2-asp-mvc/grid/connecting-to-database/mysql-server">MySQL Server</a></li>
<li><a href="/ej2-asp-mvc/grid/connecting-to-database/entity-framework">Entity Framework</a></li>
<li><a href="/ej2-asp-mvc/grid/connecting-to-database">PostgreSQL Server</a></li>
</ul>
</li>
<li><a href="/ej2-asp-mvc/grid/data-annotation">Data Annotation</a></li>
Expand Down