Connecting to Appharbor database from Xamarin Portable - xamarin

I am new to Xamarin and I recently have an assignment that I need to access to a remote database through Xamarin Portable. I have an Appharbor database, and I heard that WCF will do the job. Any guidance to achieve that?
*It also needs the ability to alter the content of database.

The question is what database you use MSSQL ? At most databases you need something between the database and the App like WCF.
But today mostly used are Web API's for that thing. You can learn more about it here http://www.asp.net/web-api

Related

How do I create a client for Azure App Insights?

I want to log to App Insights from Oracle database code. That is, pl/sql running within the database.
Is there an API guide that I can use to create a logging client? I haven't been able to find anything thus far within the online documentation, only references on how to use existing libraries for .NET, Java, etc.
Thanks so much.

How to use Azure Mobile App service with existing SQL database

I've read many articles and tutorials that demonstrate how to use the Azure mobile service however I'm left unclear with many things.
I have an existing web app that uses Azure SQL database and is published with Azure. I'm trying to integrate the already created database into the Xamarin Android App I'm developing.
I'm confused with the following things.
Do I need to change the .Net back end to be able to use the database tables in the Xamarin app? The way I see it, I shouldn't need to since the Xamarin app communicates with the SQL database, not the .Net app.
How does the data get stored into the SQL table? Do I just reference the Mobile service inside my Xamarin app and it will create a bridge between the SQL database and my application or do I need to first create the tables or import the existing tables from the database?
The web app is currently deployed to Azure Web service. Does it need to be deployed to Mobile App service?
I would really appreciate if someone can help me out with these questions.
Your mobile app is not communicating directly with your SQL database. It is likely going through an Azure App Service - this is a web-enabled piece of middleware that projects tables within the SQL database to an OData feed. So you have three pieces - the SQL database, the Azure App Service and your client.
1) Yes, you need to update the ASP.NET backend to support your database tables. If this is an existing database, then you also need to update your database to support the mobile projection. I wrote a blog on this: https://shellmonger.com/2016/05/11/30-days-of-zumo-v2-azure-mobile-apps-day-19-asp-net-table-controllers/ but you may want to start earlier in the series that that.
2) You add the Azure Mobile client to your Xamarin app - this coordinates the transfer of data between your client and the backend. You can find a tutorial on this that I recommend walking through here: https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-xamarin-android-get-started/ - you can also read the HOWTO here: https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-dotnet-how-to-use-client-library/ - the tutorial and HOWTO cover both offline and online data access scenarios.
3) If you are using the new portal (portal.azure.com), then there is really no difference between a Mobile App and a Web App. The Mobile App is simply a web app with a specific SDK deployed within your ASP.NET (or Node.js) backend code and with a connected database. The minor difference is that if you create a Mobile App then clicking on Quickstarts (within Settings) will get you a mobile quick start; if you do the same with a Web App, then clicking on Quickstarts will get you a web quick start.

Connect to an Oracle Database in Swift

I am using Xcode 7, Swift, and the new UI Automation announced at WWDC 15. I want to test some things in an oracle database after some of my UI automation tests have run.
Can this be done? If so how do you do it? I can't seem to find any sort of documentation on the subject.
The mobile phone doesn't guarantee a permanent and stable network connection and is a big problem for direct connection to DB.
For mobile platforms you need to create a web service on a server that will do all the work between database and mobile application. It is not recommended to connect directly to databases, except when it is local databases(SQLite).
I just upvoted #lurie-manea answer, in addition to that you shouldn't rely on Xcode UI test for testing your DB transaction once you have your web service implemented since you'd be able to test the DB state with XCTest(app tests) or if you using AppCode for writing code, it has nice plugin to test restful web services,
https://www.jetbrains.com/objc/help/testing-restful-web-services.html
Hope this helps.

Phonegap App using Application express database

I'm about to make an application using phonegap but the database I have to use is already used by a web app made with oracle application express. So I wanted to know is there a way of creating a web service inside that web app to retrieve the data on my mobile app ?
The second option I was thinking about is not passing by the apex web app, but just trying to use a WS to access the oracle database (with all the problems I will have to face at deployment). Can someone give me some directives ? Thanks in advance.
One quick google search will give you a couple of presentations (1) (2)
About integration between Apex and Phonegap, and a book

Workflow Foundation 4 Instance Store for Oracle

We are strongly considering using Workflow Foundation 4 in our products, however must support both SQL Server and Oracle. Does anyone know an Oracle Instance Store provider for Workflow Foundation 4?
I know I could use SQL Server Express for it, but some of our customers use Oracle, and don't want to have an SQL Server, even free, to manage.
Tks
If you do not mind using a commercial product then DevExpress has a very good solution. 16 database systems are supported along with re hosted designer and custom activities. Read more in this post XAF Workflow persistence storage
An updated devart link on the subject. It works well for me, for the persistance and the tracking participant also.
http://www.devart.com/blogs/dotconnect/?p=5566
AFAIK there is no publicly available version of the instance that works with Oracle. I have seen the question a number of times however so I can only encourage someone to publish one of those I suspect have been created privately on CodePlex.
Use this dll. We are using it and works well. Still need to check tracking and load testing.
http://www.devart.com/forums/viewtopic.php?t=21044&start=0&postdays=0&postorder=asc&highlight=&sid=a5e672c431dafecb1e675b6fbecc5183

Resources