Hi
does Xamarin work with the .NET mongodb drivers? Tried to install the Mongo 2.2.3 package via Nuget but get the following error:
Adding MongoDB.Driver...
Attempting to resolve dependency 'MongoDB.Bson (≥ 2.2.3)'.
Attempting to resolve dependency 'MongoDB.Driver.Core (≥ 2.2.3)'.
Adding 'MongoDB.Bson 2.2.3' to mdb.
Could not install package 'MongoDB.Bson 2.2.3'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', 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.
Does anyone have experience with this??
thank you,
Chris
My guess is that the MongoDB provider is not cross platform compatible. What you'll probably have to do is create a WebService around the MongoDB provider, and then have your app call the web service. The web service would then query your MongoDB. If you're in the .NET/C# world, then you could create a ASP.NET Web API for this, so you can use the MongoDB .NET Provider.
Answers
My guess is that the MongoDB provider is not cross platform compatible. What you'll probably have to do is create a WebService around the MongoDB provider, and then have your app call the web service. The web service would then query your MongoDB. If you're in the .NET/C# world, then you could create a ASP.NET Web API for this, so you can use the MongoDB .NET Provider.