I started developing a new Cross-Platform app with Xamarin.
For other projects my teammates created an azureDB with certain tables that I want to Query for my new Application. Can anyone tell me how to connect my new app to the AzureDB?
Thanks!
The recommended way to connect to the database is using an API that will manage the interaction with the database. On this article you will find how to build a REST API to access an Azure SQL Database.
Related
I want to develop a chat module in my existing app built using android native java. Currently my user account and all data saved in sql server with backend built on C# MVC framework. Now I am confused what structure I need to follow to built chat module, I have watched many firebase tutorials but they all used firebase realtime database and save user in firebase database but I already have my data in sql server. Anyone please guide me how start with it or do you guys give any suggestion to me.
I have an Android mobile application that used to upload image and text to Firebase Database. Now, I have another web application that using C#, this is used to retrieve the data (which uploaded by the mobile app) from the Firebase. I found some examples regarding on how to retrieve data using C#, but it needs to "Add Firebase to your Web App" . Is it possible that not adding web app? Thank you.
I mean, is it possible that my mobile and web applications use the same Firebase Database/Storage, and both applications can add, edit, delete the data in the same Firebase Database/Storage?
Yes, it is possible to have an ios and web application using the same realtime database and same storage.
From the firebase docs:
The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client. When you build cross-platform apps with our iOS, Android, and JavaScript SDKs, all of your clients share one Realtime Database instance and automatically receive updates with the newest data.
To add web or ios to the project, you need to go to the firebase console and then click on add another app and choose if ios/android/web and just follow the steps.
I'm evaluating Xamarin and Azure. I would like to use App Service as a backend store.
I downloaded the C# backend and the Xamarin.Forms client application
I published the backend but it doesn't create the TodoItem table in my SQL Azure database.
It's possible to create this table by selecting the Node.js backend and click the Create TodoItem table. After this, the client application works nicely.
So, is there something to do for the C# backend to create the tables at startup?
is there something to do for the C# backend to create the tables at startup?
1.Add the data connection for Azure mobile service
2.Download the C# backend, and publish it to Azure. Make sure that conection string is the same as azure mobile App.
3.After that we could visit the browser
(http://yourmobilesitename.azurewebsites.net/tables/todoitem?ZUMO-API-VERSION=2.0.0)
it will create todoitem table for us automatically.
4.Check it from the VS Server Explorer
Note: If we want to connect the Azure SQL, we need to add the client ip in the Azure SQL firewall to allow our client to connect.
Another way is that we could use code-first migration easily to do that. I created a demo before, more detail please refer to another SO thread. We also could get more info from this tutorials.
I am trying to use ADO.NET so that my C# UWP app can access my Azure SQL database but when I try to refer to "System.Data.SqlClient", it is not readily available. I tried importing the "System.Data.dll" file but that led to a new host of errors.
I'm being led to believe that ADO.NET is not compatible with UWP apps. The problem with that is that I can't find another technology that will allow me to work with my Azure SQL database. Am I missing something here?
The best way to handle this is to create a full web api solution.
So, at the end, you will have
An Azure SQL Database
A Web API website , which will expose your datas in a JSON format. Using Entity Framework is not mandatory but can help in some way :)
An UWP application which will request your Web API endpoints
You will find here a complete solution : http://www.asp.net/web-api/overview/data/using-web-api-with-entity-framework/part-1
Latest UWP platform offers connectivity to SQl Server .
Please refer
https://learn.microsoft.com/en-us/windows/uwp/data-access/sql-server-databases
I'm working on an exercise and i want a help. So far I have to created an MVC4 Internet Application using C# and uploaded it to azure as a web site (custom create with sql server). Now I want to create a web service to use the same database that my web application is using. How I can do it?
I found an option when you create a new project (C#->Cloud Project-> Windows Azure Cloud Service)
Note that then i want to use the web service with workflow based service
Thank you
Connections to SQL Azure are just Connection Strings. This isn't any different than creating applications on premises or hosting them elsewhere. Get the connection string of your existing Azure SQL Database and then use that when setting up your database calls in your web service project. You can get the connection string from the Windows Azure Management portal. Dig down to the database and there will be a Show Connection Strings option on the dashboard page for the database. See this documentation if you aren't familiar with working with connection strings Azure SQL: http://msdn.microsoft.com/en-us/library/windowsazure/ee336282.aspx
Note that Azure SQL Databases do not support integrated windows authentication, so the connection string will contain the username and password. You may want to look into securing that information in your configuration.