Xamarin (Visual Studio) x POSTGRESQL

Asked

Viewed 490 times

0

Good evening, you guys, I work in a company of development of commercial automation software, A Alterdata, and today I work directly with Postgresql, and I have a lot of affinity with it.

I wonder if I have how to synchronize Postgres with Visual Studio ( Xamarin)

2 answers

1


If you want to work with Postgresql directly in the mobile application, the answer is no. You have no way to install Postgresql on Android, iOS or winPhone. For this you have the Sqlite.

If you want to connect to a remote base, it is possible but not recommended. As I saw here: https://forums.xamarin.com/discussion/29034/connect-to-postgresql you would need a library that supports mobile platforms.

The ideal in this case would be webservice or webApi.

Another discussion: https://forums.xamarin.com/discussion/53795/postgres-sql-database-connectivity

0

It is possible to use Postgresql in Visual Studio projects, regardless of the language or framework you are using (I have already used it with Entity, for example).

The connection will be similar to those of Sqlserver, you will only change the Data Provider to Npgsql, which is the specific ADO.NET Provider for Postgresql connections.

Follow the link with further instructions: http://www.npgsql.org/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.