locked
Resource App Using Cosmos DB RRS feed

  • Question

  • User395332 posted

    Hello everyone. I am a brand new user of Xamarin, C#, and Azure (I know, it's probably a lot to learn at once but I'm determined). I have gotten to the point in my app development where I need to connect a database. I am creating an app for my local community where they can get on and search for local resources such as non-profits, public services, and health clinics and it'll show an address, phone number, how far they are from the user, etc.. I have created all of the items in Cosmos Db but now I have no idea how to connect it to my app. It's been a struggle trying to find tutorials that go step by step through the process and aren't super confusing. There will be no user profiles or anything of that nature. Any advice or links to tutorials that might explain connecting Cosmos Db to a simple resource app would be greatly appreciated. I apologize if this is a silly question! I've watched so many videos and read through several webpages of tutorials but most of them are for apps that let users edit the information in the database and I don't need that. I hope this all makes sense and I will gladly clarify if I need to! Thank you all so much! - Shannon Polk

    Monday, June 22, 2020 5:01 PM

Answers

  • User369979 posted

    Here is the documentation demonstrates how to connect to Azure Cosmos DB from Xamarin applications: https://docs.microsoft.com/en-us/azure/cosmos-db/create-sql-api-xamarin-dotnet And you could refer to the sample for the specific code: https://github.com/Azure-Samples/azure-cosmos-db-sql-xamarin-getting-started

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, June 23, 2020 3:37 AM