Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
I'm developing a software with database in C#.Net with SQL Server Database. Now i want my to access my data from online website, and android app.
Have you any idea, which database and language i should use to access from 3 different platforms at a time.
For example: I put record in my database from desktop PC, then i want that record from my android app, and from my website at the same time.

Advance sorry for bad english.
Posted

Well one way to do it is via REST, Representational State Transfer.
This approach is platform independent and built upon the HTTP protocol.
Learn REST: A Tutorial[^]

You implement one service on the server side, and then you adapt your clients to the protocol.
You can easily find examples for how to implement the client side for different environments.

This is one way out of many to solve your problem.
 
Share this answer
 
Comments
Leo Chapiro 29-Sep-15 7:08am    
+5 for this simple and versatile solution, IMHO this is the right way!
George Jonsson 29-Sep-15 19:40pm    
Thanks. For the needs of the OP it seemed to be a good way forward.
The simplest solution is to host a webservice/wcf application for all the database oporations and consume it with all other applications.

Reference:
Your first C# Web Service[^]
A Beginner's Tutorial for Understanding Windows Communication Foundation (WCF)[^]

Hope, it helps :)
 
Share this answer
 
If you want to use your application in 3 devices like Mobile App, Desktop, Laptop..

As of my knowledge there is only one option i.e. using services.

It's send data in 2 ways;
1) XML format
2) JSON format


out of the above 2, JSON format is the best option.

In our software environment we can call services in different ways.

1) WebService
2) WCF Services
3) Web API Services

Before implement your requirement, first you need to gather requirements then analyse by your self and discuss with your project lead and come to know one conclusion which way you are going to work.
 
Share this answer
 
You can follow following approach to solve your problem:
1. Create a WCF service to perform CURD operation on your database.
2. Design a web application with any of the technology and consume the WCF service for data manipulation.
3. Create a Mobile App or simple web app with AngularJS and consume the same WCF service.
 
Share this answer
 
Now these days i am also trying exactly what you want. you may check dot42 Or Xamarin if want to make development over .net using c#. I am currently using Java ,android Studio And Eclipse
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900