locked
Connect to postgreSQL. RRS feed

  • Question

  • User87373 posted

    Is there any working way to connect to postgreSQL? I try Npgsql, but i get error Could not install package 'Npgsql 2.2.3'. You are trying to install this package into a project that targets 'portable-net45+win+wp80+MonoTouch10+MonoAndroid10+xamarinmac20+xamarinios10', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

    Friday, December 5, 2014 12:33 AM

All replies

  • User33230 posted

    You'll need a PCL assembly to add to the Xamarin Forms assembly, and it will need to support the platforms listed. It doesn't appear from NuGet that Npgsql is a portable library.

    Monday, December 8, 2014 5:17 AM
  • User83124 posted

    The way to talk to any datastore in the universe is to us a WCF service client in the PCL and a WCF service in a .NET class project. You will then have any access to all of the .NET framework outside the PCL enclosure.

    The whole world of .NET waits outside your PCL project.

    Wednesday, December 10, 2014 2:47 AM